mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Kernel: Avoid allocation when checking for vmmouse
This commit is contained in:
parent
3d855a801b
commit
bf88adbcb6
Notes:
sideshowbarker
2024-07-18 01:52:21 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/bf88adbcb67 Pull-request: https://github.com/SerenityOS/serenity/pull/10607 Reviewed-by: https://github.com/ADKaster ✅
|
@ -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