ramfs: Fix bool/status mixup in DirectoryEntryTable.

Now you can actually delete files again.
This commit is contained in:
Augustin Cavalier 2019-08-31 17:52:16 -04:00
parent 677fca26d7
commit c8f0cc1afa

View File

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