staging: rtl8723au: core: rtw_ap.c - removed NULL pointer check before kfree()
PATCH 1/2 staging: rtl8723au: core: rtw_ap.c - removed NULL pointer check before kfree()
From: Anil Belur <[email protected]>
- as kfree() internally check for NULL, additional check it not required.
Signed-off-by Anil Belur <[email protected]>
--- drivers/staging/rtl8723au/core/rtw_ap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723au/core/rtw_ap.c +1 -2
@@ -1270,8 +1270,7 @@ static void update_bcn_wps_ie(struct rtw_adapter *padapter) pnetwork->IELength = wps_offset + (wps_ielen+2 ) + remainder_ielen; } -if (pbackup_remainder_ie) -kfree (pbackup_remainder_ie); +kfree (pbackup_remainder_ie); }static void update_bcn_p2p_ie (struct rtw_adapter *padapter)
Signature · 1 line
1.9.1
PATCH 2/2 staging: rtl8723au: core: rtw_cmd.c - removed NULL pointer check before kfree()
From: Anil Belur <[email protected]>
- as kfree() internally checks for NULL, additional check it not required.
Signed-off-by Anil Belur <[email protected]>
--- drivers/staging/rtl8723au/core/rtw_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723au/core/rtw_cmd.c +1 -2
@@ -516,8 +516,7 @@ int rtw_joinbss_cmd23a(struct rtw_adapter *padapter, psecnetwork = &psecuritypriv->sec_bss;if (!psecnetwork) { -if (pcmd) -kfree (pcmd); +kfree (pcmd); res = _FAIL;
Signature · 1 line
1.9.1
Quoted 5 lines · Anil Belur
From: Anil Belur <[email protected]>
- as
kfree()internally check for NULL, additional check it not required.
Sorry - please ignore this patch set, they are already fixed by someone else recently.