summaryrefslogtreecommitdiff
path: root/drivers/md/dm-ps-round-robin.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-ps-round-robin.c')
-rw-r--r--drivers/md/dm-ps-round-robin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/dm-ps-round-robin.c b/drivers/md/dm-ps-round-robin.c
index 66a15ac0c22c..0c12f4073461 100644
--- a/drivers/md/dm-ps-round-robin.c
+++ b/drivers/md/dm-ps-round-robin.c
@@ -232,10 +232,7 @@ static int __init dm_rr_init(void)
static void __exit dm_rr_exit(void)
{
- int r = dm_unregister_path_selector(&rr_ps);
-
- if (r < 0)
- DMERR("unregister failed %d", r);
+ dm_unregister_path_selector(&rr_ps);
}
module_init(dm_rr_init);