x86/crash: Remove unnecessary comparison
authorNikolas Nyby <nikolas@gnu.org>
Wed, 24 Jul 2019 04:13:37 +0000 (00:13 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 24 Jul 2019 14:50:15 +0000 (16:50 +0200)
commit4599c6671b8119ed5455e4ed6b967b461c27a9f7
tree93d124536a77b0ea267087adafb9ea5bdf05d6a6
parentbdd50d7421b2f8fd99f953e1f747e0cb3f3bed64
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
arch/x86/kernel/crash.c