diff options
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index c0950a0b5312..fc6c1021178d 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -1352,15 +1352,14 @@ static int __init dm_multipath_init(void) | |||
1352 | 1352 | ||
1353 | r = dm_register_target(&multipath_target); | 1353 | r = dm_register_target(&multipath_target); |
1354 | if (r < 0) { | 1354 | if (r < 0) { |
1355 | DMERR("%s: register failed %d", multipath_target.name, r); | 1355 | DMERR("register failed %d", r); |
1356 | kmem_cache_destroy(_mpio_cache); | 1356 | kmem_cache_destroy(_mpio_cache); |
1357 | return -EINVAL; | 1357 | return -EINVAL; |
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | kmultipathd = create_workqueue("kmpathd"); | 1360 | kmultipathd = create_workqueue("kmpathd"); |
1361 | if (!kmultipathd) { | 1361 | if (!kmultipathd) { |
1362 | DMERR("%s: failed to create workqueue kmpathd", | 1362 | DMERR("failed to create workqueue kmpathd"); |
1363 | multipath_target.name); | ||
1364 | dm_unregister_target(&multipath_target); | 1363 | dm_unregister_target(&multipath_target); |
1365 | kmem_cache_destroy(_mpio_cache); | 1364 | kmem_cache_destroy(_mpio_cache); |
1366 | return -ENOMEM; | 1365 | return -ENOMEM; |
@@ -1381,8 +1380,7 @@ static void __exit dm_multipath_exit(void) | |||
1381 | 1380 | ||
1382 | r = dm_unregister_target(&multipath_target); | 1381 | r = dm_unregister_target(&multipath_target); |
1383 | if (r < 0) | 1382 | if (r < 0) |
1384 | DMERR("%s: target unregister failed %d", | 1383 | DMERR("target unregister failed %d", r); |
1385 | multipath_target.name, r); | ||
1386 | kmem_cache_destroy(_mpio_cache); | 1384 | kmem_cache_destroy(_mpio_cache); |
1387 | } | 1385 | } |
1388 | 1386 | ||