mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel: Avoid allocation when checking for vmmouse
This commit is contained in:
parent
3d855a801b
commit
bf88adbcb6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue