mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
cc5bd925f1
commit
4813577f93
1 changed files with 2 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue