diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-05-04 14:33:11 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-05-06 11:45:27 +0300 |
commit | f8f24ece219204333ac825e9c8aaf3403e201d92 (patch) | |
tree | 1daec36840c733a55f57833053f7b38de44f7665 /drivers/net/wireless/broadcom/b43/pio.c | |
parent | e2b9ac59081028d48ec7aa9a3510981eda94c327 (diff) | |
download | linux-f8f24ece219204333ac825e9c8aaf3403e201d92.tar.xz |
b43: remove Comparison of 0/1 to bool variable in pio.c
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
Diffstat (limited to 'drivers/net/wireless/broadcom/b43/pio.c')
-rw-r--r-- | drivers/net/wireless/broadcom/b43/pio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/b43/pio.c b/drivers/net/wireless/broadcom/b43/pio.c index 69f8b46c9015..1a11c5dfb8d9 100644 --- a/drivers/net/wireless/broadcom/b43/pio.c +++ b/drivers/net/wireless/broadcom/b43/pio.c @@ -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(); |