staging/rtl8723bs/core/rtw_ap: Remove redundant call to memset
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 16 Jun 2019 03:35:27 +0000 (09:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 06:59:41 +0000 (08:59 +0200)
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>
drivers/staging/rtl8723bs/core/rtw_ap.c

index 87b201af56a91287cbf5d1aae9a00d5cc7bc9aa9..df055b8652e0cd5138b4b66e60364f1bc2459b3c 100644 (file)
@@ -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);