Re: [PATCH 1/5] staging: rtl8723bs: Remove set but not used variable 'i'

2019-10-07 Thread Dan Carpenter
On Sun, Oct 06, 2019 at 05:09:55PM +0800, zhengbin wrote: > @@ -689,7 +688,7 @@ static s32 update_attrib(struct adapter *padapter, _pkt > *pkt, struct pkt_attrib > DBG_COUNTER(padapter->tx_logs.core_tx_upd_attrib); > > _rtw_open_pktfile(pkt, &pktfile); > - i = _rtw_pktfile_read(&p

Re: [PATCH 1/5] staging: rtl8723bs: Remove set but not used variable 'i'

2019-10-07 Thread Greg KH
On Sun, Oct 06, 2019 at 05:09:55PM +0800, zhengbin wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/staging/rtl8723bs/core/rtw_xmit.c: In function update_attrib: > drivers/staging/rtl8723bs/core/rtw_xmit.c:680:7: warning: variable i set but > not used [-Wunused-but-set-variable

[PATCH 1/5] staging: rtl8723bs: Remove set but not used variable 'i'

2019-10-06 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs/core/rtw_xmit.c: In function update_attrib: drivers/staging/rtl8723bs/core/rtw_xmit.c:680:7: warning: variable i set but not used [-Wunused-but-set-variable] It is not used since commit 554c0a3abf21 ("staging: Add rtl8723bs