heap: don't set next_free anymore

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-04-20 10:37:44 +02:00
parent 31533a061d
commit 27d2b6c955
-1
View File
@@ -213,7 +213,6 @@ static void object_heap_free_unlocked(object_heap_p heap, object_base_p obj)
ASSERT(obj->next_free == ALLOCATED); ASSERT(obj->next_free == ALLOCATED);
obj->next_free = heap->next_free; obj->next_free = heap->next_free;
heap->next_free = obj->id & OBJECT_HEAP_ID_MASK;
} }
void object_heap_free(object_heap_p heap, object_base_p obj) void object_heap_free(object_heap_p heap, object_base_p obj)