Skip to content

Commit eac5b13

Browse files
sycamoremoonAlexandre Ghiti
authored andcommitted
riscv: remove redundant CMDLINE_FORCE check
Drop redundant CMDLINE_FORCE check as it's already done in function early_init_dt_scan_chosen(). Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20250114-rebund-v1-1-5632b2d54d6c@gmail.com Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
1 parent 5f1a58e commit eac5b13

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/riscv/kernel/setup.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,6 @@ static void __init parse_dtb(void)
235235
} else {
236236
pr_err("No DTB passed to the kernel\n");
237237
}
238-
239-
#ifdef CONFIG_CMDLINE_FORCE
240-
strscpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
241-
pr_info("Forcing kernel command line to: %s\n", boot_command_line);
242-
#endif
243238
}
244239

245240
#if defined(CONFIG_RISCV_COMBO_SPINLOCKS)

0 commit comments

Comments
 (0)