diff options
-rw-r--r-- | drivers/md/dm-table.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 63cc54289aff..a3d1e18317f4 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -268,8 +268,7 @@ void dm_table_destroy(struct dm_table *t) | |||
268 | vfree(t->highs); | 268 | vfree(t->highs); |
269 | 269 | ||
270 | /* free the device list */ | 270 | /* free the device list */ |
271 | if (t->devices.next != &t->devices) | 271 | free_devices(&t->devices); |
272 | free_devices(&t->devices); | ||
273 | 272 | ||
274 | dm_free_md_mempools(t->mempools); | 273 | dm_free_md_mempools(t->mempools); |
275 | 274 | ||