1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

Kernel: Switch RTL8168NetworkAdapter::possible_device_name to StringView

There is no need to allocate a `AK::String` for the device name, when
the list of devices is entirely static.
This commit is contained in:
Brian Gianforcaro 2021-09-27 17:56:34 -07:00 committed by Brian Gianforcaro
parent 2770433d30
commit b90cc1148a
2 changed files with 15 additions and 15 deletions

View file

@ -122,7 +122,7 @@ private:
};
void identify_chip_version();
String possible_device_name();
StringView possible_device_name();
void reset();
void read_mac_address();