Kernel: You don't have to check whether VFS is initialized or not

VFS now returns Error when attempting to traverse inodes if it did
not find root partition
This commit is contained in:
2023-03-09 02:31:24 +02:00
parent fc58baf54d
commit 8940ff8002
5 changed files with 8 additions and 26 deletions

View File

@@ -127,11 +127,7 @@ extern "C" void kernel_main()
MUST(scheduler.add_thread(MUST(Thread::create(
[terminal_driver]
{
if (auto error = VirtualFileSystem::initialize(); error.is_error())
{
derrorln("{}", error.error());
return;
}
MUST(VirtualFileSystem::initialize());
auto font_or_error = Font::load("/usr/share/fonts/zap-ext-vga16.psf");
if (font_or_error.is_error())