Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1513901 > unrolled thread

[PATCH] EFI loader: remove pointless "if" statement

Started byEugene Korenevsky <ekorenevsky@gmail.com>
First post2016-11-02 16:10 +0100
Last post2016-11-02 16:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] EFI loader: remove pointless "if" statement Eugene Korenevsky <ekorenevsky@gmail.com> - 2016-11-02 16:10 +0100

#1513901 — [PATCH] EFI loader: remove pointless "if" statement

FromEugene Korenevsky <ekorenevsky@gmail.com>
Date2016-11-02 16:10 +0100
Subject[PATCH] EFI loader: remove pointless "if" statement
Message-ID<sz5kR-7UD-1@gated-at.bofh.it>
An obvious cleanup. "if" statement does nothing and should be removed.

---
 arch/x86/boot/compressed/eboot.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
index cc69e37..202f2aa 100644
--- a/arch/x86/boot/compressed/eboot.c
+++ b/arch/x86/boot/compressed/eboot.c
@@ -1054,11 +1054,7 @@ static efi_status_t exit_boot(struct boot_params *boot_params,
 	/* Historic? */
 	boot_params->alt_mem_k = 32 * 1024;
 
-	status = setup_e820(boot_params, e820ext, e820ext_size);
-	if (status != EFI_SUCCESS)
-		return status;
-
-	return EFI_SUCCESS;
+	return setup_e820(boot_params, e820ext, e820ext_size);
 }
 
 /*
-- 
2.10.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web