From bf88adbcb6782826fee76e1fb1899cf8580b0755 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 23 Oct 2021 22:31:28 +0200 Subject: [PATCH] Kernel: Avoid allocation when checking for vmmouse --- Kernel/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index 7741367f4a..a586a06657 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -113,7 +113,7 @@ UNMAP_AFTER_INIT bool CommandLine::is_smp_enabled() const UNMAP_AFTER_INIT bool CommandLine::is_vmmouse_enabled() const { - return lookup("vmmouse"sv).value_or("on") == "on"sv; + return lookup("vmmouse"sv).value_or("on"sv) == "on"sv; } UNMAP_AFTER_INIT PCIAccessLevel CommandLine::pci_access_level() const