aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r--drivers/md/dm-snap.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 4ceedd4f22af..a8005b43a06b 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -1470,17 +1470,10 @@ static int __init dm_snapshot_init(void)
1470 1470
1471static void __exit dm_snapshot_exit(void) 1471static void __exit dm_snapshot_exit(void)
1472{ 1472{
1473 int r;
1474
1475 destroy_workqueue(ksnapd); 1473 destroy_workqueue(ksnapd);
1476 1474
1477 r = dm_unregister_target(&snapshot_target); 1475 dm_unregister_target(&snapshot_target);
1478 if (r) 1476 dm_unregister_target(&origin_target);
1479 DMERR("snapshot unregister failed %d", r);
1480
1481 r = dm_unregister_target(&origin_target);
1482 if (r)
1483 DMERR("origin unregister failed %d", r);
1484 1477
1485 exit_origin_hash(); 1478 exit_origin_hash();
1486 kmem_cache_destroy(pending_cache); 1479 kmem_cache_destroy(pending_cache);