[PATCH] x86/reboot: Remove dead code after machine_real_restart()
From: Noah Burchell
Date: Mon Nov 02 2026 - 01:25:04 EST
machine_real_restart() is __noreturn and ends in unreachable(), so the
reboot_type assignment and the break after it in the BOOT_BIOS case can
never execute.
Remove them. No functional change.
Signed-off-by: Noah Burchell <noah@xxxxxxxxxx>
---
arch/x86/kernel/reboot.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 0fed6d0d7..28f938a3b 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -635,10 +635,6 @@ static void native_machine_emergency_restart(void)
case BOOT_BIOS:
machine_real_restart(MRR_BIOS);
- /* We're probably dead after this, but... */
- reboot_type = BOOT_CF9_SAFE;
- break;
-
case BOOT_CF9_FORCE:
port_cf9_safe = true;
fallthrough;
--
2.56.0