mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 01:02:06 +00:00
Kernel: Tidy up VirtualFileSystem::mount_root() a little bit
- Return KResult instead of bool - Use TRY()
This commit is contained in:
parent
b0f2acbd91
commit
71187d865e
3 changed files with 7 additions and 10 deletions
|
@ -320,7 +320,7 @@ void init_stage2(void*)
|
|||
SB16::detect();
|
||||
|
||||
StorageManagement::initialize(kernel_command_line().root_device(), kernel_command_line().is_force_pio());
|
||||
if (!VirtualFileSystem::the().mount_root(StorageManagement::the().root_filesystem())) {
|
||||
if (VirtualFileSystem::the().mount_root(StorageManagement::the().root_filesystem()).is_error()) {
|
||||
PANIC("VirtualFileSystem::mount_root failed");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue