]> asedeno.scripts.mit.edu Git - linux.git/commit
ath9k: Remove some set but not used variables
authorYueHaibing <yuehaibing@huawei.com>
Wed, 17 Apr 2019 02:57:45 +0000 (10:57 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 29 Apr 2019 14:54:52 +0000 (17:54 +0300)
commit05039f01e63053add589255e4a9aa1d4c3e1f0c0
treebf0b312acf966ea24aeb4d31faedf269f8081f48
parentb037b107565f329e737ec9ffdb121477a07245b6
ath9k: Remove some set but not used variables

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/ath/ath9k/xmit.c: In function 'ath_tx_count_frames':
drivers/net/wireless/ath/ath9k/xmit.c:413:25: warning: variable 'fi' set but not used [-Wunused-but-set-variable]
drivers/net/wireless/ath/ath9k/xmit.c: In function 'ath_tx_complete_aggr':
drivers/net/wireless/ath/ath9k/xmit.c:449:24: warning: variable 'hdr' set but not used [-Wunused-but-set-variable]
drivers/net/wireless/ath/ath9k/xmit.c: In function 'ath_tx_start':
drivers/net/wireless/ath/ath9k/xmit.c:2274:18: warning: variable 'avp' set but not used [-Wunused-but-set-variable]
drivers/net/wireless/ath/ath9k/xmit.c:2269:24: warning: variable 'hdr' set but not used [-Wunused-but-set-variable]

These variables are not used any more
and can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/xmit.c