Kernel: Avoid allocation when checking for vmmouse

This commit is contained in:
Ben Wiederhake 2021-10-23 22:31:28 +02:00 committed by Andreas Kling
parent 3d855a801b
commit bf88adbcb6

View file

@ -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