1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 10:24:59 +00:00

Kernel: Suppress remaining unobserved KResult return codes

These are all cases where there is no clear and easy fix,
I've left FIXME bread crumbs so that these can hopefully
be fixed over time.
This commit is contained in:
Brian Gianforcaro 2020-08-05 02:13:30 -07:00 committed by Andreas Kling
parent d67069d922
commit 946c96dd56
7 changed files with 23 additions and 15 deletions

View file

@ -1477,11 +1477,13 @@ void Ext2FSInode::populate_lookup_cache() const
return;
HashMap<String, unsigned> children;
traverse_as_directory([&children](auto& entry) {
KResult result = traverse_as_directory([&children](auto& entry) {
children.set(String(entry.name, entry.name_length), entry.inode.index());
return true;
});
ASSERT(result.is_success());
if (!m_lookup_cache.is_empty())
return;
m_lookup_cache = move(children);