staging: uwb: fix coccinelle warnings of comparison to bool
authorJules Irenge <jbi.octave@gmail.com>
Tue, 22 Oct 2019 18:53:28 +0000 (19:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Oct 2019 03:03:00 +0000 (23:03 -0400)
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>
drivers/staging/uwb/rsv.c

index f45a04ff7275547d0c646e292df3981edaec70fd..d593a41c3d8da214c4bb09ff7f31314ab5a7917f 100644 (file)
@@ -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) {