summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/md/dm-log-userspace-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/md/dm-log-userspace-base.c')
-rw-r--r--kernel/drivers/md/dm-log-userspace-base.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/drivers/md/dm-log-userspace-base.c b/kernel/drivers/md/dm-log-userspace-base.c
index 058256d2e..53b7b06d0 100644
--- a/kernel/drivers/md/dm-log-userspace-base.c
+++ b/kernel/drivers/md/dm-log-userspace-base.c
@@ -313,8 +313,7 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti,
out:
kfree(devices_rdata);
if (r) {
- if (lc->flush_entry_pool)
- mempool_destroy(lc->flush_entry_pool);
+ mempool_destroy(lc->flush_entry_pool);
kfree(lc);
kfree(ctr_str);
} else {