Skip to content

Commit 4684abe

Browse files
ardbiesheuvelIngo Molnar
authored andcommitted
efi/x86: Remove unreachable code in kexec_enter_virtual_mode()
Remove some code that is guaranteed to be unreachable, given that we have already bailed by this time if EFI_OLD_MEMMAP is set. Signed-off-by: Ard Biesheuvel <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Arvind Sankar <[email protected]> Cc: Matthew Garrett <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent e2d68a9 commit 4684abe

File tree

1 file changed

+0
-3
lines changed
  • arch/x86/platform/efi

1 file changed

+0
-3
lines changed

arch/x86/platform/efi/efi.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -850,9 +850,6 @@ static void __init kexec_enter_virtual_mode(void)
850850
efi.runtime_version = efi_systab.hdr.revision;
851851

852852
efi_native_runtime_setup();
853-
854-
if (efi_enabled(EFI_OLD_MEMMAP) && (__supported_pte_mask & _PAGE_NX))
855-
runtime_code_page_mkexec();
856853
#endif
857854
}
858855

0 commit comments

Comments
 (0)