wifi: rt2x00: Simplify bool conversion
PATCH 1/1 wifi: rt2x00: Simplify bool conversion
./drivers/net/wireless/ralink/rt2x00/rt2800lib.c:1331:47-52: WARNING: conversion to bool not needed here ./drivers/net/wireless/ralink/rt2x00/rt2800lib.c:1332:47-52: WARNING: conversion to bool not needed here
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ralink/rt2x00/rt2800lib.c +2 -2
@@ -1328,8 +1328,8 @@ static bool rt2800_watchdog_dma_busy(struct rt2x00_dev *rt2x00dev)else rt2x00dev->txdma_busy =0 ; - busy_rx = rt2x00dev->rxdma_busy >30 ? true : false; - busy_tx = rt2x00dev->txdma_busy >30 ? true : false; + busy_rx = rt2x00dev->rxdma_busy >30 ; + busy_tx = rt2x00dev->txdma_busy >30 ;if (!busy_rx && !busy_tx)return false;
Signature · 1 line
2.20.1.7.g153144c
Quoted 6 lines · Yang Li
./drivers/net/wireless/ralink/rt2x00/rt2800lib.c:1331:47-52: WARNING: conversion to bool not needed here ./drivers/net/wireless/ralink/rt2x00/rt2800lib.c:1332:47-52: WARNING: conversion to bool not needed here
Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>
Patch applied to wireless-next.git, thanks.
cda398fcb488 wifi: rt2x00: Simplify bool conversion
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches