[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190616033527.GA14062@hari-Inspiron-1545>
Date: Sun, 16 Jun 2019 09:05:27 +0530
From: Hariprasad Kelam <hariprasad.kelam@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Hariprasad Kelam <hariprasad.kelam@...il.com>,
Kimberly Brown <kimbrownkd@...il.com>,
Shobhit Kukreti <shobhitkukreti@...il.com>,
Bastien Nocera <hadess@...ess.net>,
Anirudh Rayabharam <anirudh.rayabharam@...il.com>,
Nishka Dasgupta <nishka.dasgupta@...oo.com>,
Hardik Singh Rathore <hardiksingh.k@...il.com>,
Mamta Shukla <mamtashukla555@...il.com>,
Puranjay Mohan <puranjay12@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...il.com>
---
drivers/staging/rtl8723bs/core/rtw_ap.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 87b201a..df055b8 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
@@ -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);
--
2.7.4
Powered by blists - more mailing lists