summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-11-15 15:34:09 -0800
committerMike Snitzer <snitzer@redhat.com>2016-11-21 09:52:09 -0500
commit4813577f932050f33c29e2a35a01431814437700 (patch)
tree3057dd9ecffb609286a332e3fcc704556bcfd123 /drivers/md
parentcc5bd925f194c8dc7e2a4eee2c81a4f148018b08 (diff)
downloadlinux-stable-4813577f932050f33c29e2a35a01431814437700.tar.gz
linux-stable-4813577f932050f33c29e2a35a01431814437700.tar.bz2
linux-stable-4813577f932050f33c29e2a35a01431814437700.zip
dm mpath: change return type of pg_init_all_paths() from int to void
None of the callers of pg_init_all_paths() check its return value. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-mpath.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index f8369697af12..373e5e3eec78 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -372,16 +372,13 @@ static int __pg_init_all_paths(struct multipath *m)
return atomic_read(&m->pg_init_in_progress);
}
-static int pg_init_all_paths(struct multipath *m)
+static void pg_init_all_paths(struct multipath *m)
{
- int r;
unsigned long flags;
spin_lock_irqsave(&m->lock, flags);
- r = __pg_init_all_paths(m);
+ __pg_init_all_paths(m);
spin_unlock_irqrestore(&m->lock, flags);
-
- return r;
}
static void __switch_pg(struct multipath *m, struct priority_group *pg)