staging/rtl8723bs/core: Remove redundant call to memset
PATCH 1/1 staging/rtl8723bs/core: Remove redundant call to memset
rtw_zmalloc is doing memset . So there is no need to call memset again.
Signed-off-by Hariprasad Kelam <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +0 -2
@@ -2229,7 +2229,6 @@ sint rtw_set_auth(struct adapter *adapter, struct security_priv *psecuritypriv) goto exit; } -memset (psetauthparm,0 ,sizeof (struct setauth_parm )); psetauthparm->mode = (unsigned char )psecuritypriv->dot11AuthAlgrthm; pcmd->cmdcode = _SetAuth_CMD_;
@@ -2262,7 +2261,6 @@ sint rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, s res = _FAIL; goto exit; } -memset (psetkeyparm,0 ,sizeof (struct setkey_parm ));if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) { psetkeyparm->algorithm = (unsigned char )psecuritypriv->dot118021XGrpPrivacy;
Signature · 1 line
2.7.4