[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190724041337.8346-1-nikolas@gnu.org>
Date: Wed, 24 Jul 2019 00:13:37 -0400
From: Nikolas Nyby <nikolas@....org>
To: tglx@...utronix.de, x86@...nel.org, linux-kernel@...r.kernel.org
Cc: Nikolas Nyby <nikolas@....org>
Subject: [PATCH] x86/crash: remove unnecessary comparison
This ret comparison and return are unnecessary as of
f296f2634920d205b93d878b48d87bb7e0a4c256
elf_header_exclude_ranges() returns ret in any case, with or
without this comparison.
Signed-off-by: Nikolas Nyby <nikolas@....org>
---
arch/x86/kernel/crash.c | 2 --
1 file changed, 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;
--
2.20.1
Powered by blists - more mailing lists