Skip to content

Commit 902d636

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: mm: init: remove unnecessary "#ifdef CONFIG_CRASH_DUMP"
The is_kdump_kernel() returns false for !CRASH_DUMP case, so we don't need the #ifdef CONFIG_CRASH_DUMP for is_kdump_kernel() checking. Signed-off-by: Jisheng Zhang <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent f1b744f commit 902d636

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/riscv/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,10 @@ static void __init reserve_crashkernel(void)
791791
* since it doesn't make much sense and we have limited memory
792792
* resources.
793793
*/
794-
#ifdef CONFIG_CRASH_DUMP
795794
if (is_kdump_kernel()) {
796795
pr_info("crashkernel: ignoring reservation request\n");
797796
return;
798797
}
799-
#endif
800798

801799
ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(),
802800
&crash_size, &crash_base);

0 commit comments

Comments
 (0)