]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8821ae: Remove set but not used variables 'cur_txokcnt' and 'b_last_is_cu...
authorYueHaibing <yuehaibing@huawei.com>
Sat, 25 May 2019 14:43:32 +0000 (22:43 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 May 2019 12:37:10 +0000 (15:37 +0300)
commite96b3b8c3a86fa2fb8b08c78eaf18186795c2440
tree697a14651725eab4eda2755d6ee26485a35f9cee
parentb068633f3ea02a1024434f81fe917ab8a08c9dec
rtlwifi: rtl8821ae: Remove set but not used variables 'cur_txokcnt' and 'b_last_is_cur_rdl_state'

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

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c: In function rtl8821ae_dm_check_rssi_monitor:
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:658:6: warning: variable cur_txokcnt set but not used [-Wunused-but-set-variable]
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c: In function rtl8821ae_dm_check_edca_turbo:
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:2657:7: warning: variable b_last_is_cur_rdl_state set but not used [-Wunused-but-set-variable]

They are never used so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c