OSDN Git Service

ath9k: Simplify ar9003_hw_tx99_set_txpower
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 28 Apr 2016 14:45:06 +0000 (16:45 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 9 May 2016 17:46:51 +0000 (20:46 +0300)
commitb0291715d31c891bcb5de936271881f58600f7c1
tree0e1569f2e43b1e8d3e8eb4d32a246677120805ae
parente7ae328961ffcf78bb18d0ecdb1e5a50d1185336
ath9k: Simplify ar9003_hw_tx99_set_txpower

There's no need to keep the same for loop twice in the code.
Move the txpower cap before the loop to reduce code complexity.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9003_phy.c