Commit cda398fc authored by Yang Li's avatar Yang Li Committed by Kalle Valo

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7531Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231115010017.112081-1-yang.lee@linux.alibaba.com
parent f9893fda
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment