ath9k: dfs: use swap macro in ath9k_check_chirping
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 3 Nov 2017 20:14:25 +0000 (15:14 -0500)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 2 Dec 2017 14:12:53 +0000 (16:12 +0200)
commit626ab6707abe6cccc0cb26454d13b0efd72b8a6c
tree1c27c3f7e78c79a938484851aed3c7193e5a0cc0
parent0fc66ddfaf8bb8f73c965f24928f8815b470304e
ath9k: dfs: use swap macro in ath9k_check_chirping

Make use of the swap macro and remove unnecessary variable temp.
This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/dfs.c