mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Kernel: Tidy up Ext2FS construction a bit
This commit is contained in:
parent
47bfbe343b
commit
36725228fa
4 changed files with 5 additions and 5 deletions
|
@ -185,7 +185,7 @@ NonnullRefPtr<FileSystem> StorageManagement::root_filesystem() const
|
|||
auto description_or_error = FileDescription::try_create(boot_device_description.release_nonnull());
|
||||
VERIFY(!description_or_error.is_error());
|
||||
|
||||
auto file_system = Ext2FS::create(description_or_error.release_value());
|
||||
auto file_system = Ext2FS::try_create(description_or_error.release_value()).release_value();
|
||||
|
||||
if (auto result = file_system->initialize(); result.is_error()) {
|
||||
PANIC("StorageManagement: Couldn't open root filesystem: {}", result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue