mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
Kernel: Tidy up Ext2FS construction a bit
This commit is contained in:
parent
47bfbe343b
commit
36725228fa
Notes:
sideshowbarker
2024-07-18 04:37:32 +09:00
Author: https://github.com/awesomekling
Commit: 36725228fa
4 changed files with 5 additions and 5 deletions
|
@ -54,9 +54,9 @@ static unsigned divide_rounded_up(unsigned a, unsigned b)
|
|||
return (a / b) + (a % b != 0);
|
||||
}
|
||||
|
||||
NonnullRefPtr<Ext2FS> Ext2FS::create(FileDescription& file_description)
|
||||
KResultOr<NonnullRefPtr<Ext2FS>> Ext2FS::try_create(FileDescription& file_description)
|
||||
{
|
||||
return adopt_ref(*new Ext2FS(file_description));
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) Ext2FS(file_description));
|
||||
}
|
||||
|
||||
Ext2FS::Ext2FS(FileDescription& file_description)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue