lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230112052453.3365-1-kunyu@nfschina.com>
Date:   Thu, 12 Jan 2023 13:24:53 +0800
From:   Li kunyu <kunyu@...china.com>
To:     rafael@...nel.org, pavel@....cz, tglx@...utronix.de,
        mingo@...hat.com, bp@...en8.de, dave.hansen@...ux.intel.com
Cc:     x86@...nel.org, hpa@...or.com, linux-pm@...r.kernel.org,
        linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] power: hibernate: optimize function structure

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@...china.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ