infra: minor bracing improvements

This commit is contained in:
Thomas Schoebel-Theuer 2021-07-05 13:18:05 +02:00
parent c464645543
commit d64135ff3a
1 changed files with 2 additions and 4 deletions

View File

@ -448,18 +448,16 @@ void generic_free(struct generic_object *object)
WRITE_ONCE(all_aspects[i], NULL); WRITE_ONCE(all_aspects[i], NULL);
aspect_type = aspect->aspect_type; aspect_type = aspect->aspect_type;
CHECK_PTR_NULL(aspect_type, done); CHECK_PTR_NULL(aspect_type, done);
if (aspect_type->exit_fn) { if (aspect_type->exit_fn)
aspect_type->exit_fn(aspect); aspect_type->exit_fn(aspect);
}
if (aspect->shortcut) if (aspect->shortcut)
continue; continue;
brick_mem_free(aspect); brick_mem_free(aspect);
atomic_dec(&object_layout->aspect_count); atomic_dec(&object_layout->aspect_count);
} }
free: free:
if (object_type->exit_fn) { if (object_type->exit_fn)
object_type->exit_fn(object); object_type->exit_fn(object);
}
brick_mem_free(object); brick_mem_free(object);
done: ; done: ;
} }