Commit 66332820 authored by Jules Irenge's avatar Jules Irenge Committed by Greg Kroah-Hartman
Browse files

staging: uwb: fix coccinelle warnings of comparison to bool



Fix warnings of comparision to bool.
Issue detected by coccinelle tool.

Signed-off-by: default avatarJules Irenge <jbi.octave@gmail.com>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/20191022185328.9387-1-jbi.octave@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c671dfda
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {