mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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
This commit is contained in:
parent
b018bb26c4
commit
8b5d86a63b
@ -141,10 +141,7 @@ void __init check_smt_enabled(void)
|
||||
smt_enabled_at_boot = 0;
|
||||
else {
|
||||
int smt;
|
||||
int rc;
|
||||
|
||||
rc = kstrtoint(smt_enabled_cmdline, 10, &smt);
|
||||
if (!rc)
|
||||
if (!kstrtoint(smt_enabled_cmdline, 10, &smt))
|
||||
smt_enabled_at_boot =
|
||||
min(threads_per_core, smt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user