diff options
author | Mike Snitzer <snitzer@redhat.com> | 2017-01-06 15:33:14 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-02-03 10:18:37 -0500 |
commit | d19a55ccad15a486ffe03030570744e5d5bd9f8e (patch) | |
tree | 382af4807021bcda895bdbc517f1a3afc00ee0ee /drivers | |
parent | 566cf877a1fcb6d6dc0126b076aad062054c2637 (diff) |
dm mpath: cleanup -Wbool-operation warning in choose_pgpath()
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-mpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 6400cffb986d..3570bcb7a4a4 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -427,7 +427,7 @@ static struct pgpath *choose_pgpath(struct multipath *m, size_t nr_bytes) | |||
427 | unsigned long flags; | 427 | unsigned long flags; |
428 | struct priority_group *pg; | 428 | struct priority_group *pg; |
429 | struct pgpath *pgpath; | 429 | struct pgpath *pgpath; |
430 | bool bypassed = true; | 430 | unsigned bypassed = 1; |
431 | 431 | ||
432 | if (!atomic_read(&m->nr_valid_paths)) { | 432 | if (!atomic_read(&m->nr_valid_paths)) { |
433 | clear_bit(MPATHF_QUEUE_IO, &m->flags); | 433 | clear_bit(MPATHF_QUEUE_IO, &m->flags); |
@@ -466,7 +466,7 @@ check_current_pg: | |||
466 | */ | 466 | */ |
467 | do { | 467 | do { |
468 | list_for_each_entry(pg, &m->priority_groups, list) { | 468 | list_for_each_entry(pg, &m->priority_groups, list) { |
469 | if (pg->bypassed == bypassed) | 469 | if (pg->bypassed == !!bypassed) |
470 | continue; | 470 | continue; |
471 | pgpath = choose_path_in_pg(m, pg, nr_bytes); | 471 | pgpath = choose_path_in_pg(m, pg, nr_bytes); |
472 | if (!IS_ERR_OR_NULL(pgpath)) { | 472 | if (!IS_ERR_OR_NULL(pgpath)) { |