1
Fork 0
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:
Andreas Kling 2021-09-05 14:46:44 +02:00
parent b0f2acbd91
commit 71187d865e
3 changed files with 7 additions and 10 deletions

View file

@ -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");
}