ath5k: replace ternary operator with min()
authorGuo Zhengkui <guozhengkui@vivo.com>
Tue, 17 May 2022 02:39:23 +0000 (10:39 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Sun, 22 May 2022 12:29:42 +0000 (15:29 +0300)
commitb380d2056ebb7f5af1195ad07a6ce96022d4c552
tree95810f97f457f8877ada91e0a627c439088bd7f7
parent77bbbd5e0ed3b5998a353b0948584faa4f565f0e
ath5k: replace ternary operator with min()

Fix the following coccicheck warning:

drivers/net/wireless/ath/ath5k/phy.c:3139:62-63: WARNING
opportunity for min()

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220517023923.76989-1-guozhengkui@vivo.com
drivers/net/wireless/ath/ath5k/phy.c