mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
debugobjects: Remove pointless hlist initialization
It's BSS zero initialized. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/all/20241007164913.200379308@linutronix.de
This commit is contained in:
parent
55fb412ef7
commit
3f397bf955
@ -1364,20 +1364,11 @@ static bool __init debug_objects_replace_static_objects(struct kmem_cache *cache
|
||||
void __init debug_objects_mem_init(void)
|
||||
{
|
||||
struct kmem_cache *cache;
|
||||
int cpu, extras;
|
||||
int extras;
|
||||
|
||||
if (!debug_objects_enabled)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Initialize the percpu object pools
|
||||
*
|
||||
* Initialization is not strictly necessary, but was done for
|
||||
* completeness.
|
||||
*/
|
||||
for_each_possible_cpu(cpu)
|
||||
INIT_HLIST_HEAD(&per_cpu(percpu_obj_pool.free_objs, cpu));
|
||||
|
||||
if (!debug_objects_selftest())
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user