]> git.sur5r.net Git - u-boot/commit
ubi: no NULL check needed before kmem_cache_destroy
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 8 Nov 2017 21:30:59 +0000 (22:30 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 20 Nov 2017 09:13:42 +0000 (10:13 +0100)
commitcd5f33e5fc832effd70866fccd629046a6dac265
tree80234b2e516fa9fd2c0469a1af5b65e74dee6e23
parent4b29975fd0f25256d8e643076a2c4c5f9de00f8f
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>
drivers/mtd/ubi/attach.c