diff options
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r-- | drivers/md/dm-raid1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index ef124b71ccc8..2a02180f5d05 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -1335,8 +1335,7 @@ static int __init dm_mirror_init(void) | |||
1335 | 1335 | ||
1336 | r = dm_register_target(&mirror_target); | 1336 | r = dm_register_target(&mirror_target); |
1337 | if (r < 0) { | 1337 | if (r < 0) { |
1338 | DMERR("%s: Failed to register mirror target", | 1338 | DMERR("Failed to register mirror target"); |
1339 | mirror_target.name); | ||
1340 | dm_dirty_log_exit(); | 1339 | dm_dirty_log_exit(); |
1341 | } | 1340 | } |
1342 | 1341 | ||
@@ -1349,7 +1348,7 @@ static void __exit dm_mirror_exit(void) | |||
1349 | 1348 | ||
1350 | r = dm_unregister_target(&mirror_target); | 1349 | r = dm_unregister_target(&mirror_target); |
1351 | if (r < 0) | 1350 | if (r < 0) |
1352 | DMERR("%s: unregister failed %d", mirror_target.name, r); | 1351 | DMERR("unregister failed %d", r); |
1353 | 1352 | ||
1354 | dm_dirty_log_exit(); | 1353 | dm_dirty_log_exit(); |
1355 | } | 1354 | } |