Skip to content

Commit 8b5d86a

Browse files
Xichao Zhaomaddy-kerneldev
authored andcommitted
powerpc/64: Drop unnecessary 'rc' variable
Simplify the code to enhance readability and maintain a consistent coding style. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Acked-by: Gautam Menghani <gautam@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20250801035908.370463-1-zhao.xichao@vivo.com
1 parent b018bb2 commit 8b5d86a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

arch/powerpc/kernel/setup_64.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ void __init check_smt_enabled(void)
141141
smt_enabled_at_boot = 0;
142142
else {
143143
int smt;
144-
int rc;
145-
146-
rc = kstrtoint(smt_enabled_cmdline, 10, &smt);
147-
if (!rc)
144+
if (!kstrtoint(smt_enabled_cmdline, 10, &smt))
148145
smt_enabled_at_boot =
149146
min(threads_per_core, smt);
150147
}

0 commit comments

Comments
 (0)