ath9k: replace ternary operator with max()
authorGuo Zhengkui <guozhengkui@vivo.com>
Tue, 17 May 2022 02:41:06 +0000 (10:41 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Sun, 22 May 2022 12:31:18 +0000 (15:31 +0300)
commit2be8afe05833c65017c8c56953f3640acfc42a40
tree9cb917add51a3c44847864545a2ec483be949bbd
parentbebcfd2534a63ab7e7325f5337662bc84ca038b6
ath9k: replace ternary operator with max()

Fix the following coccicheck warning:

drivers/net/wireless/ath/ath9k/dfs.c:249:28-30: WARNING
opportunity for max()

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220517024106.77050-1-guozhengkui@vivo.com
drivers/net/wireless/ath/ath9k/dfs.c