mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-22 14:41:42 +00:00
ubi: no NULL check needed before kmem_cache_destroy
kmem_cache_destroy calls free which checks for NULL. Problem was indicated by coccinelle. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
4b29975fd0
commit
cd5f33e5fc
1 changed files with 1 additions and 2 deletions
|
@ -1205,7 +1205,6 @@ static void destroy_ai(struct ubi_attach_info *ai)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ai->aeb_slab_cache)
|
|
||||||
kmem_cache_destroy(ai->aeb_slab_cache);
|
kmem_cache_destroy(ai->aeb_slab_cache);
|
||||||
|
|
||||||
kfree(ai);
|
kfree(ai);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue