ramfs: Fix bool/status mixup in DirectoryEntryTable.
Now you can actually delete files again.
This commit is contained in:
parent
677fca26d7
commit
c8f0cc1afa
@ -138,8 +138,7 @@ DirectoryEntryTable::RemoveEntry(ino_t id, const char *name)
|
||||
Entry* child = fTable.Lookup(typename DirectoryEntryHash::Key(id, name));
|
||||
if (!child)
|
||||
return B_NAME_NOT_FOUND;
|
||||
status_t error = fTable.Remove(child);
|
||||
return error;
|
||||
return fTable.Remove(child) ? B_OK : B_ERROR;
|
||||
}
|
||||
|
||||
// GetEntry
|
||||
|
Loading…
Reference in New Issue
Block a user