Kernel: Fix -Wunreachable-code warnings from clang

This commit is contained in:
Nico Weber 2021-10-07 13:51:24 -04:00 committed by Andreas Kling
commit 1cdb12e920
Notes: sideshowbarker 2024-07-18 02:54:43 +09:00
7 changed files with 6 additions and 12 deletions

View file

@ -141,10 +141,8 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
switch (function) {
case SC_exit:
process.sys$exit(arg1);
break;
case SC_exit_thread:
process.sys$exit_thread(arg1, arg2, arg3);
break;
default:
VERIFY_NOT_REACHED();
}