b43: remove Comparison of 0/1 to bool variable in pio.c
authorJason Yan <yanaijie@huawei.com>
Mon, 4 May 2020 11:33:11 +0000 (19:33 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 May 2020 08:45:27 +0000 (11:45 +0300)
Fix the following coccicheck warning:

drivers/net/wireless/broadcom/b43/pio.c:768:10-25: WARNING: Comparison
of 0/1 to bool variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200504113311.41026-1-yanaijie@huawei.com
drivers/net/wireless/broadcom/b43/pio.c

index 69f8b46..1a11c5d 100644 (file)
@@ -765,7 +765,7 @@ void b43_pio_rx(struct b43_pio_rxqueue *q)
        bool stop;
 
        while (1) {
-               stop = (pio_rx_frame(q) == 0);
+               stop = !pio_rx_frame(q);
                if (stop)
                        break;
                cond_resched();