Commit baae10fe authored by Jason Yan's avatar Jason Yan Committed by Greg Kroah-Hartman

Staging: rtl8723bs: core: remove set but not used 'ptxservq'

Fix the following gcc warning:

drivers/staging/rtl8723bs/core/rtw_sta_mgt.c:556:19: warning: variable
‘ptxservq’ set but not used [-Wunused-but-set-variable]
  struct tx_servq *ptxservq;
                   ^~~~~~~~
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarJason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20200427032342.27211-4-yanaijie@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 58994584
...@@ -553,7 +553,6 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter) ...@@ -553,7 +553,6 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter)
{ {
struct sta_info *psta; struct sta_info *psta;
struct tx_servq *ptxservq;
u32 res = _SUCCESS; u32 res = _SUCCESS;
NDIS_802_11_MAC_ADDRESS bcast_addr = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; NDIS_802_11_MAC_ADDRESS bcast_addr = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
...@@ -571,7 +570,6 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter) ...@@ -571,7 +570,6 @@ u32 rtw_init_bcmc_stainfo(struct adapter *padapter)
/* default broadcast & multicast use macid 1 */ /* default broadcast & multicast use macid 1 */
psta->mac_id = 1; psta->mac_id = 1;
ptxservq = &(psta->sta_xmitpriv.be_q);
exit: exit:
return _SUCCESS; return _SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment