diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-02-15 20:54:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-16 22:21:37 +0100 |
commit | 5a5766be2c2edb7d130d650a0c3e8707b9d57410 (patch) | |
tree | 3ed3f05173bd391afffd022b7508b865507fba39 /Kernel/Storage | |
parent | 9277d2dce2bf35b8232996bcc6daef5a568addcb (diff) | |
download | serenity-5a5766be2c2edb7d130d650a0c3e8707b9d57410.zip |
Kernel: Remove useless partition UUID length check
UUID::to_string() always returns a string of length 36, so this check
can't fail.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r-- | Kernel/Storage/StorageManagement.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Kernel/Storage/StorageManagement.cpp b/Kernel/Storage/StorageManagement.cpp index f30f6a5a19..02de8e055c 100644 --- a/Kernel/Storage/StorageManagement.cpp +++ b/Kernel/Storage/StorageManagement.cpp @@ -222,12 +222,6 @@ UNMAP_AFTER_INIT void StorageManagement::determine_boot_device_with_partition_uu auto partition_uuid = UUID(m_boot_argument.substring_view(partition_uuid_prefix.length()), UUID::Endianness::Mixed); - if (partition_uuid.to_string().length() != 36) { - // FIXME: It would be helpful to output the specified and detected UUIDs in this case, - // but we never actually enter this path - if the length doesn't match, the UUID - // constructor above crashes with a VERIFY in convert_string_view_to_uuid(). - PANIC("StorageManagement: Specified partition UUID is not valid"); - } for (auto& storage_device : m_storage_devices) { for (auto& partition : storage_device.partitions()) { if (partition.metadata().unique_guid().is_zero()) |