diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2021-10-20 19:43:49 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2021-10-20 20:09:51 +0200 |
commit | a52f60fa2905b4abb26235d0a11cff13ced92709 (patch) | |
tree | c0e839ece83f35d2137c5c08deeaf0f366b0b033 /kernel/reboot.c | |
parent | exit: Remove calls of do_exit after noreturn versions of die (diff) | |
download | linux-a52f60fa2905b4abb26235d0a11cff13ced92709.tar.xz linux-a52f60fa2905b4abb26235d0a11cff13ced92709.zip |
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>
Diffstat (limited to 'kernel/reboot.c')
-rw-r--r-- | kernel/reboot.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/reboot.c b/kernel/reboot.c index f7440c0c7e43..d6e0f9fb7f04 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -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(); |