Skip to contentSkip to conversation

EFI loader: remove pointless "if" statement

PATCH New Eugene Korenevsky 1 participant 1 message Nov 2, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EFI loader: remove pointless "if" statement

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(-)
arch/x86/boot/compressed/eboot.c +1 -5
index cc69e37..202f2aa 100644
@@ -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);
 }
 
 /*
Signature · 1 line
2.10.2