mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Remove else-after-return statements in CommandLine.cpp
This commit is contained in:
parent
1db53400ce
commit
9346b9589f
Notes:
sideshowbarker
2024-07-17 21:54:53 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/9346b9589f4 Pull-request: https://github.com/SerenityOS/serenity/pull/11475
1 changed files with 4 additions and 2 deletions
|
@ -217,7 +217,8 @@ UNMAP_AFTER_INIT AHCIResetMode CommandLine::ahci_reset_mode() const
|
|||
const auto ahci_reset_mode = lookup("ahci_reset_mode"sv).value_or("controllers"sv);
|
||||
if (ahci_reset_mode == "controllers"sv) {
|
||||
return AHCIResetMode::ControllerOnly;
|
||||
} else if (ahci_reset_mode == "aggressive"sv) {
|
||||
}
|
||||
if (ahci_reset_mode == "aggressive"sv) {
|
||||
return AHCIResetMode::Aggressive;
|
||||
}
|
||||
PANIC("Unknown AHCIResetMode: {}", ahci_reset_mode);
|
||||
|
@ -233,7 +234,8 @@ PanicMode CommandLine::panic_mode(Validate should_validate) const
|
|||
const auto panic_mode = lookup("panic"sv).value_or("halt"sv);
|
||||
if (panic_mode == "halt"sv) {
|
||||
return PanicMode::Halt;
|
||||
} else if (panic_mode == "shutdown"sv) {
|
||||
}
|
||||
if (panic_mode == "shutdown"sv) {
|
||||
return PanicMode::Shutdown;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue