aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 573bd04591bf..d267bb5705e9 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -1378,8 +1378,8 @@ static void multipath_resume(struct dm_target *ti)
1378 * [priority selector-name num_ps_args [ps_args]* 1378 * [priority selector-name num_ps_args [ps_args]*
1379 * num_paths num_selector_args [path_dev [selector_args]* ]+ ]+ 1379 * num_paths num_selector_args [path_dev [selector_args]* ]+ ]+
1380 */ 1380 */
1381static int multipath_status(struct dm_target *ti, status_type_t type, 1381static void multipath_status(struct dm_target *ti, status_type_t type,
1382 unsigned status_flags, char *result, unsigned maxlen) 1382 unsigned status_flags, char *result, unsigned maxlen)
1383{ 1383{
1384 int sz = 0; 1384 int sz = 0;
1385 unsigned long flags; 1385 unsigned long flags;
@@ -1485,8 +1485,6 @@ static int multipath_status(struct dm_target *ti, status_type_t type,
1485 } 1485 }
1486 1486
1487 spin_unlock_irqrestore(&m->lock, flags); 1487 spin_unlock_irqrestore(&m->lock, flags);
1488
1489 return 0;
1490} 1488}
1491 1489
1492static int multipath_message(struct dm_target *ti, unsigned argc, char **argv) 1490static int multipath_message(struct dm_target *ti, unsigned argc, char **argv)
@@ -1695,7 +1693,7 @@ out:
1695 *---------------------------------------------------------------*/ 1693 *---------------------------------------------------------------*/
1696static struct target_type multipath_target = { 1694static struct target_type multipath_target = {
1697 .name = "multipath", 1695 .name = "multipath",
1698 .version = {1, 5, 0}, 1696 .version = {1, 5, 1},
1699 .module = THIS_MODULE, 1697 .module = THIS_MODULE,
1700 .ctr = multipath_ctr, 1698 .ctr = multipath_ctr,
1701 .dtr = multipath_dtr, 1699 .dtr = multipath_dtr,