mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
Kernel: Simplify FS::create_directory() a little bit
None of the clients of this function actually used the returned Inode, so it can simply return a KResult instead.
This commit is contained in:
@@ -83,10 +83,9 @@ RefPtr<Inode> DevPtsFS::create_inode(InodeIdentifier, const String&, mode_t, off
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<Inode> DevPtsFS::create_directory(InodeIdentifier, const String&, mode_t, uid_t, gid_t, int& error)
|
||||
KResult DevPtsFS::create_directory(InodeIdentifier, const String&, mode_t, uid_t, gid_t)
|
||||
{
|
||||
error = -EROFS;
|
||||
return nullptr;
|
||||
return KResult(-EROFS);
|
||||
}
|
||||
|
||||
RefPtr<Inode> DevPtsFS::get_inode(InodeIdentifier inode_id) const
|
||||
|
||||
Reference in New Issue
Block a user