mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
Kernel: Remove usage of adopt_own in MultiProcessorParser
This commit is contained in:
parent
af2c3ab524
commit
32f96eb937
Notes:
sideshowbarker
2024-07-18 17:15:15 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/32f96eb937b Pull-request: https://github.com/SerenityOS/serenity/pull/7520 Reviewed-by: https://github.com/supercomputer7
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ UNMAP_AFTER_INIT OwnPtr<MultiProcessorParser> MultiProcessorParser::autodetect()
|
|||
auto floating_pointer = find_floating_pointer();
|
||||
if (!floating_pointer.has_value())
|
||||
return {};
|
||||
return adopt_own(*new MultiProcessorParser(floating_pointer.value()));
|
||||
auto parser = adopt_own_if_nonnull(new MultiProcessorParser(floating_pointer.value()));
|
||||
VERIFY(parser != nullptr);
|
||||
return parser;
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT MultiProcessorParser::MultiProcessorParser(PhysicalAddress floating_pointer)
|
||||
|
|
Loading…
Add table
Reference in a new issue