mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:38:11 +00:00
Kernel: Use KResult in unlink() and rmdir().
This commit is contained in:
parent
ce53b6fd0f
commit
5b27f11b97
11 changed files with 54 additions and 92 deletions
|
@ -1056,11 +1056,10 @@ bool ProcFSInode::add_child(InodeIdentifier child_id, const String& name, byte f
|
|||
return false;
|
||||
}
|
||||
|
||||
bool ProcFSInode::remove_child(const String& name, int& error)
|
||||
KResult ProcFSInode::remove_child(const String& name)
|
||||
{
|
||||
(void)name;
|
||||
error = -EPERM;
|
||||
return false;
|
||||
return KResult(-EPERM);
|
||||
}
|
||||
|
||||
ProcFSInodeCustomData::~ProcFSInodeCustomData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue