diff options
Diffstat (limited to 'kernel/drivers/mtd/ubi/attach.c')
-rw-r--r-- | kernel/drivers/mtd/ubi/attach.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/drivers/mtd/ubi/attach.c b/kernel/drivers/mtd/ubi/attach.c index 68eea5bef..c1aaf0336 100644 --- a/kernel/drivers/mtd/ubi/attach.c +++ b/kernel/drivers/mtd/ubi/attach.c @@ -1209,9 +1209,7 @@ 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); } |