From: Li kunyu <kunyu@nfschina.com>
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 <kunyu@nfschina.com>
Subject: [PATCH] power: hibernate: optimize function structure
Date: Thu, 12 Jan 2023 13:24:53 +0800 [thread overview]
Message-ID: <20230112052453.3365-1-kunyu@nfschina.com> (raw)
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 <kunyu@nfschina.com>
---
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();
--
2.18.2
next reply other threads:[~2023-01-12 5:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-12 5:24 Li kunyu [this message]
2023-01-20 16:45 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230112052453.3365-1-kunyu@nfschina.com \
--to=kunyu@nfschina.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®