]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cpu: remove needless return in void API suspend_enable_secondary_cpus()
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 21 Feb 2025 13:02:07 +0000 (05:02 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 06:24:15 +0000 (23:24 -0700)
Remove needless 'return' in void API suspend_enable_secondary_cpus() since
both the API and thaw_secondary_cpus() are void functions.

Link: https://lkml.kernel.org/r/20250221-rmv_return-v1-2-cc8dff275827@quicinc.com
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cpu.h

index 6a0a8f1c7c90358f9e50ada3a1efd82a1506eacf..e3049543008b9c8b8185ed202b4eef8f5b80234a 100644 (file)
@@ -148,7 +148,7 @@ static inline int suspend_disable_secondary_cpus(void)
 }
 static inline void suspend_enable_secondary_cpus(void)
 {
-       return thaw_secondary_cpus();
+       thaw_secondary_cpus();
 }
 
 #else /* !CONFIG_PM_SLEEP_SMP */