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>
This commit is contained in:
Jules Irenge 2019-10-22 19:53:28 +01:00 committed by Greg Kroah-Hartman
parent c671dfdaed
commit 663328205c
1 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ int uwb_rsv_try_move(struct uwb_rsv *rsv, struct uwb_mas_bm *available)
struct uwb_rsv_move *mv; struct uwb_rsv_move *mv;
int ret = 0; int ret = 0;
if (bow->can_reserve_extra_mases == false) if (!bow->can_reserve_extra_mases)
return -EBUSY; return -EBUSY;
mv = &rsv->mv; mv = &rsv->mv;
@ -643,7 +643,7 @@ void uwb_rsv_handle_drp_avail_change(struct uwb_rc *rc)
struct uwb_rsv *rsv; struct uwb_rsv *rsv;
struct uwb_mas_bm mas; struct uwb_mas_bm mas;
if (bow->can_reserve_extra_mases == false) if (!bow->can_reserve_extra_mases)
return; return;
list_for_each_entry(rsv, &rc->reservations, rc_node) { list_for_each_entry(rsv, &rc->reservations, rc_node) {