summaryrefslogtreecommitdiff
path: root/Kernel/Bus/USB
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-10-02 15:30:23 -0700
committerAndreas Kling <kling@serenityos.org>2021-10-03 13:36:10 +0200
commit3a945051fc70b772558496c2a02d1f09320cb134 (patch)
tree768767c5366b6130c241e4f9ad1ec7971e068655 /Kernel/Bus/USB
parent5f1c98e5764c00b4601c959013291c8804e35618 (diff)
downloadserenity-3a945051fc70b772558496c2a02d1f09320cb134.zip
Kernel: Use `operator ""sv` in all purpose() implementations
Previously there was a mix of returning plain strings and returning explicit string views using `operator ""sv`. This change switches them all to standardized on `operator ""sv` as it avoids a call to strlen.
Diffstat (limited to 'Kernel/Bus/USB')
-rw-r--r--Kernel/Bus/USB/UHCI/UHCIController.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/USB/UHCI/UHCIController.h b/Kernel/Bus/USB/UHCI/UHCIController.h
index 4fce8a9235..d9c426ff3c 100644
--- a/Kernel/Bus/USB/UHCI/UHCIController.h
+++ b/Kernel/Bus/USB/UHCI/UHCIController.h
@@ -36,7 +36,7 @@ public:
static KResultOr<NonnullRefPtr<UHCIController>> try_to_initialize(PCI::DeviceIdentifier const& pci_device_identifier);
virtual ~UHCIController() override;
- virtual StringView purpose() const override { return "UHCI"; }
+ virtual StringView purpose() const override { return "UHCI"sv; }
virtual KResult initialize() override;
virtual KResult reset() override;