staging: rtl8723bs: remove unused variable
PATCH 1/1 staging: rtl8723bs: remove unused variable
Fix the following clang warning:
drivers/staging/rtl8723bs/core/rtw_mlme.c:2356:6:
warning: variable ‘pframe’ set but not used [-Wunused-but-set-variable]
Signed-off-by Luo Meng <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +2 -3
@@ -2353,12 +2353,11 @@ void rtw_build_wmm_ie_ht(struct adapter *padapter, u8 *out_ie, uint *pout_len) {unsigned char WMM_IE [] = {0x00 ,0x50 ,0xf2 ,0x02 ,0x00 ,0x01 ,0x00 };int out_len; -u8 *pframe;if (padapter->mlmepriv.qospriv.qos_option ==0 ) { out_len = *pout_len; - pframe =rtw_set_ie (out_ie+out_len,WLAN_EID_VENDOR_SPECIFIC , - _WMM_IE_Length_,WMM_IE , pout_len); +rtw_set_ie (out_ie+out_len,WLAN_EID_VENDOR_SPECIFIC , + WMM_IE_Length_,WMM_IE , pout_len); padapter->mlmepriv.qospriv.qos_option =1 ; }
Signature · 1 line
2.25.4
Greg KH
maintainerQuoted 33 lines · Luo Meng
Fix the following clang warning:
drivers/staging/rtl8723bs/core/rtw_mlme.c:2356:6:
warning: variable ‘pframe’ set but not used [-Wunused-but-set-variable]Signed-off-by Luo Meng <[email protected]>--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/staging/rtl8723bs/core/rtw_mlme.c +2
-3@@ -2353,12 +2353,11 @@ void rtw_build_wmm_ie_ht(struct adapter *padapter, u8 *out_ie, uint *pout_len) {unsigned char WMM_IE [] = {0x00 ,0x50 ,0xf2 ,0x02 ,0x00 ,0x01 ,0x00 };int out_len; -u8 *pframe;if (padapter->mlmepriv.qospriv.qos_option ==0 ) { out_len = *pout_len; - pframe =rtw_set_ie (out_ie+out_len,WLAN_EID_VENDOR_SPECIFIC , - _WMM_IE_Length_,WMM_IE , pout_len); +rtw_set_ie (out_ie+out_len,WLAN_EID_VENDOR_SPECIFIC , + WMM_IE_Length_,WMM_IE , pout_len); padapter->mlmepriv.qospriv.qos_option =1 ; }Signature · 1 line
2.25.4
Does not apply to my tree :(