Skip to contentSkip to conversation

staging/rtl8723bs/core/rtw_ap: Remove redundant call to memset

PATCH New Hariprasad Kelam 1 participant 1 message Jun 16, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/rtl8723bs/core/rtw_ap: Remove redundant call to memset

rtw_zmalloc is internally doing memset . So there is no need to call memset again.

---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +0 -2
index 87b201a..df055b8 100644
@@ -1502,8 +1502,6 @@ static int rtw_ap_set_key(
 		goto exit;
 	}
 
-	memset(psetkeyparm, 0, sizeof(struct setkey_parm));
-
 	psetkeyparm->keyid = (u8)keyid;
 	if (is_wep_enc(alg))
 		padapter->securitypriv.key_mask |= BIT(psetkeyparm->keyid);
Signature · 1 line
2.7.4