From patchwork Thu Jan 12 05:24:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 13097533 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2FDEC54EBC for ; Thu, 12 Jan 2023 05:25:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236639AbjALFZN (ORCPT ); Thu, 12 Jan 2023 00:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236520AbjALFY7 (ORCPT ); Thu, 12 Jan 2023 00:24:59 -0500 Received: from mail.nfschina.com (unknown [42.101.60.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FD6A65C6; Wed, 11 Jan 2023 21:24:57 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 906BF1A00A1C; Thu, 12 Jan 2023 13:25:11 +0800 (CST) X-Virus-Scanned: amavisd-new at nfschina.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 38brvE-IQqH0; Thu, 12 Jan 2023 13:25:10 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 8B4461A00888; Thu, 12 Jan 2023 13:25:10 +0800 (CST) From: Li kunyu To: rafael@kernel.org, pavel@ucw.cz, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, hpa@zytor.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] power: hibernate: optimize function structure Date: Thu, 12 Jan 2023 13:24:53 +0800 Message-Id: <20230112052453.3365-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The goto statement jump is not required at the end of the if statement block, because it will be executed to the lower part of the goto statement. Signed-off-by: Li kunyu --- arch/x86/power/hibernate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/power/hibernate.c b/arch/x86/power/hibernate.c index 6f955eb1e163..936558c4e821 100644 --- a/arch/x86/power/hibernate.c +++ b/arch/x86/power/hibernate.c @@ -210,8 +210,6 @@ int arch_resume_nosmt(void) if (ret) goto out; ret = cpuhp_smt_disable(old); - if (ret) - goto out; } out: cpu_hotplug_disable();