mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 23:13:00 +00:00
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>
This commit is contained in:
parent
9fd5a04d8e
commit
a52f60fa29
|
@ -359,7 +359,6 @@ SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
|
|||
case LINUX_REBOOT_CMD_HALT:
|
||||
kernel_halt();
|
||||
do_exit(0);
|
||||
panic("cannot halt");
|
||||
|
||||
case LINUX_REBOOT_CMD_POWER_OFF:
|
||||
kernel_power_off();
|
||||
|
|
Loading…
Reference in New Issue
Block a user