All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/crash: remove unnecessary comparison
@ 2019-07-24  4:13 Nikolas Nyby
  2019-07-24 14:55 ` [tip:x86/cleanups] x86/crash: Remove " tip-bot for Nikolas Nyby
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolas Nyby @ 2019-07-24  4:13 UTC (permalink / raw)
  To: tglx, x86, linux-kernel; +Cc: Nikolas Nyby

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@gnu.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:x86/cleanups] x86/crash: Remove unnecessary comparison
  2019-07-24  4:13 [PATCH] x86/crash: remove unnecessary comparison Nikolas Nyby
@ 2019-07-24 14:55 ` tip-bot for Nikolas Nyby
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Nikolas Nyby @ 2019-07-24 14:55 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: nikolas, tglx, hpa, mingo, linux-kernel

Commit-ID:  4599c6671b8119ed5455e4ed6b967b461c27a9f7
Gitweb:     https://git.kernel.org/tip/4599c6671b8119ed5455e4ed6b967b461c27a9f7
Author:     Nikolas Nyby <nikolas@gnu.org>
AuthorDate: Wed, 24 Jul 2019 00:13:37 -0400
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 24 Jul 2019 16:50:15 +0200

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 | 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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-24 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-24  4:13 [PATCH] x86/crash: remove unnecessary comparison Nikolas Nyby
2019-07-24 14:55 ` [tip:x86/cleanups] x86/crash: Remove " tip-bot for Nikolas Nyby

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.