summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-11-20 11:46:08 -0500
committerTom Rini <trini@konsulko.com>2017-11-20 11:46:08 -0500
commit69d3226530a0bb4945644778b903c5b95d858e30 (patch)
treef643335c7a0b1a8a5bd4eb0e7c31d7a31485d35d /drivers
parent56d5a10f3ade93f5065f9299cb06503dc4194365 (diff)
parentcd5f33e5fc832effd70866fccd629046a6dac265 (diff)
Merge git://git.denx.de/u-boot-ubi
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/ubi/attach.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/attach.c b/drivers/mtd/ubi/attach.c
index 90fb74a5c9..33c176a77b 100644
--- a/drivers/mtd/ubi/attach.c
+++ b/drivers/mtd/ubi/attach.c
@@ -1205,8 +1205,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);
}