Skip to content

Commit a52f60f

Browse files
committed
reboot: Remove the unreachable panic after do_exit in reboot(2)
Link: https://lkml.kernel.org/r/20211020174406.17889-3-ebiederm@xmission.com Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
1 parent 9fd5a04 commit a52f60f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

kernel/reboot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
359359
case LINUX_REBOOT_CMD_HALT:
360360
kernel_halt();
361361
do_exit(0);
362-
panic("cannot halt");
363362

364363
case LINUX_REBOOT_CMD_POWER_OFF:
365364
kernel_power_off();

0 commit comments

Comments
 (0)