summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/crash.c
diff options
context:
space:
mode:
authorNikolas Nyby <nikolas@gnu.org>2019-07-24 06:13:37 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-07-24 16:50:15 +0200
commit4599c6671b8119ed5455e4ed6b967b461c27a9f7 (patch)
tree93d124536a77b0ea267087adafb9ea5bdf05d6a6 /arch/x86/kernel/crash.c
parentx86/bitops: Use __builtin_constant_p() directly instead of IS_IMMEDIATE() (diff)
downloadlinux-4599c6671b8119ed5455e4ed6b967b461c27a9f7.tar.xz
linux-4599c6671b8119ed5455e4ed6b967b461c27a9f7.zip
x86/crash: Remove unnecessary comparison
The ret comparison and return are unnecessary as of commit f296f2634920 ("x86/kexec: Remove walk_iomem_res() call with GART type") elf_header_exclude_ranges() returns ret in any case, with or without this comparison. [ tglx: Use a proper commit reference instead of full SHA ] Signed-off-by: Nikolas Nyby <nikolas@gnu.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20190724041337.8346-1-nikolas@gnu.org
Diffstat (limited to 'arch/x86/kernel/crash.c')
-rw-r--r--arch/x86/kernel/crash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
index 2bf70a2fed90..eb651fbde92a 100644
--- a/arch/x86/kernel/crash.c
+++ b/arch/x86/kernel/crash.c
@@ -225,8 +225,6 @@ static int elf_header_exclude_ranges(struct crash_mem *cmem)
if (crashk_low_res.end) {
ret = crash_exclude_mem_range(cmem, crashk_low_res.start,
crashk_low_res.end);
- if (ret)
- return ret;
}
return ret;