Thread (1 message) 1 message, 1 author, 2020-09-01

Re: [PATCH] ath6kl: wmi: remove set but not used 'rate'

From: Kalle Valo <hidden>
Date: 2020-09-01 12:39:48
Also in: linux-wireless, lkml

Jason Yan [off-list ref] writes:
This addresses the following gcc warning with "make W=1":

drivers/net/wireless/ath/ath6kl/wmi.c: In function
‘ath6kl_wmi_bitrate_reply_rx’:
drivers/net/wireless/ath/ath6kl/wmi.c:1204:6: warning: variable ‘rate’
set but not used [-Wunused-but-set-variable]
 1204 |  s32 rate;
      |      ^~~~

The variable 'sgi' is alse removed because after 'rate' is removed, it
is not used too.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Already fixed in ath.git tree.

-- 
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help