From 4ba68c94fe67af1f5d653e710bfc056f8c7cc739 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Sat, 30 Sep 2023 21:21:36 +0200 Subject: [PATCH] Kernel: Allow enumerating disk partitions without any devices detected --- Kernel/Devices/Storage/StorageManagement.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Devices/Storage/StorageManagement.cpp b/Kernel/Devices/Storage/StorageManagement.cpp index 8203abf539..a5d61260fa 100644 --- a/Kernel/Devices/Storage/StorageManagement.cpp +++ b/Kernel/Devices/Storage/StorageManagement.cpp @@ -225,7 +225,6 @@ ErrorOr StorageManagement::enumerate_device_partitions(StorageDevice& devi UNMAP_AFTER_INIT void StorageManagement::enumerate_disk_partitions() { - VERIFY(!m_storage_devices.is_empty()); for (auto& device : m_storage_devices) { // FIXME: Maybe handle this error in some way shape or form (void)enumerate_device_partitions(device);