Kernel/Storage: Remove InterfaceType enum

This enum was created to help put distinction between the commandset and
the interface type, as ATAPI devices are simply ATA devices utilizing
the SCSI commandset. Because we don't support ATAPI, putting such type
of distinction is pointless, so let's remove this for now.
This commit is contained in:
Liav A 2022-08-05 13:36:10 +03:00 committed by Linus Groh
parent c85f81bc9d
commit c3eaa73113
Notes: sideshowbarker 2024-07-17 23:02:37 +09:00
8 changed files with 5 additions and 41 deletions

View file

@ -21,8 +21,6 @@ StringView StorageDeviceAttributeSysFSComponent::name() const
return "sector_size"sv;
case Type::CommandSet:
return "command_set"sv;
case Type::InterfaceType:
return "interface_type"sv;
default:
VERIFY_NOT_REACHED();
}
@ -65,9 +63,6 @@ ErrorOr<NonnullOwnPtr<KBuffer>> StorageDeviceAttributeSysFSComponent::try_to_gen
case Type::CommandSet:
value = TRY(KString::formatted("{}", m_device->command_set_to_string_view()));
break;
case Type::InterfaceType:
value = TRY(KString::formatted("{}", m_device->interface_type_to_string_view()));
break;
default:
VERIFY_NOT_REACHED();
}