diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2019-10-22 19:53:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-24 23:03:00 -0400 |
commit | 663328205c0d7b246cbf01247d4a81b15460f312 (patch) | |
tree | b92c8f076d71d0a8f9388f92f126d7459762c6c2 /drivers/staging | |
parent | c671dfdaedefc69000955b3a257538175bcb8aba (diff) |
staging: uwb: fix coccinelle warnings of comparison to bool
Fix warnings of comparision to bool.
Issue detected by coccinelle tool.
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/20191022185328.9387-1-jbi.octave@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/uwb/rsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/uwb/rsv.c b/drivers/staging/uwb/rsv.c index f45a04ff7275..d593a41c3d8d 100644 --- a/drivers/staging/uwb/rsv.c +++ b/drivers/staging/uwb/rsv.c @@ -614,7 +614,7 @@ int uwb_rsv_try_move(struct uwb_rsv *rsv, struct uwb_mas_bm *available) struct uwb_rsv_move *mv; int ret = 0; - if (bow->can_reserve_extra_mases == false) + if (!bow->can_reserve_extra_mases) return -EBUSY; mv = &rsv->mv; @@ -643,7 +643,7 @@ void uwb_rsv_handle_drp_avail_change(struct uwb_rc *rc) struct uwb_rsv *rsv; struct uwb_mas_bm mas; - if (bow->can_reserve_extra_mases == false) + if (!bow->can_reserve_extra_mases) return; list_for_each_entry(rsv, &rc->reservations, rc_node) { |