1
Fork 0
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:
Andreas Kling 2019-02-27 14:11:25 +01:00
parent ce53b6fd0f
commit 5b27f11b97
11 changed files with 54 additions and 92 deletions

View file

@ -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()