diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-12-06 23:03:49 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-01-19 09:56:30 -0800 |
commit | 902d6364aad5fc8731ac5b19ed9a1d9c9ee0bd91 (patch) | |
tree | 45470b41db37ff9f85070a351e50c2f016c46070 /arch/riscv | |
parent | f1b744f65e2f9682347c5faf6377e61e2ab19a67 (diff) | |
download | linux-902d6364aad5fc8731ac5b19ed9a1d9c9ee0bd91.tar.bz2 |
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 <jszhang@kernel.org>
Reviewed-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/mm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 0624c68331d8..122352823835 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -791,12 +791,10 @@ static void __init reserve_crashkernel(void) * since it doesn't make much sense and we have limited memory * resources. */ -#ifdef CONFIG_CRASH_DUMP if (is_kdump_kernel()) { pr_info("crashkernel: ignoring reservation request\n"); return; } -#endif ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(), &crash_size, &crash_base); |