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. Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bd462d407b
commit
5d8c5c684a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user