]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dm mpath: change return type of pg_init_all_paths() from int to void
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 15 Nov 2016 23:34:09 +0000 (15:34 -0800)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Nov 2016 14:52:09 +0000 (09:52 -0500)
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>
drivers/md/dm-mpath.c

index f8369697af122c5ed226af959766996c4b0a648d..373e5e3eec78d96496a01d2c70a6ab30fb7d9b49 100644 (file)
@@ -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)