summaryrefslogtreecommitdiff
path: root/kernel/lib/relist.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/lib/relist.c')
-rw-r--r--kernel/lib/relist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/lib/relist.c b/kernel/lib/relist.c
index 2e45429..5c03ab2 100644
--- a/kernel/lib/relist.c
+++ b/kernel/lib/relist.c
@@ -129,8 +129,7 @@ int relist_set(struct relist *list, u32 index, void *value) {
assert(0);
return 0;
}
- int is_used = (list->bitmap[index / 64] & ((u64)1 << (index % 64)));
- assert(is_used);
+ list->bitmap[index / 64] |= ((u64)1 << (index % 64));
list->entries[index] = value;
return 1;
}