staging: rtl8723au: Remove unnecessary memset() followed by a memcpy() into the same...
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:21:03 +0000 (23:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:16 +0000 (08:29 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/os_dep/mlme_linux.c

index 73a54a4ae792846ee2d6550357b12f64ed35cde8..ab5550650e21fb14093edf67afad391a25fc4182 100644 (file)
@@ -36,9 +36,6 @@ void rtw_reset_securitypriv23a(struct rtw_adapter *adapter)
                 *  When the countermeasure is trigger, the driver have to
                 *  disconnect with AP for 60 seconds.
                 */
-               memset(&backupPMKIDList[0], 0x00, sizeof(struct rt_pmkid_list) *
-                      NUM_PMKID_CACHE);
-
                memcpy(&backupPMKIDList[0], &adapter->securitypriv.PMKIDList[0],
                       sizeof(struct rt_pmkid_list) * NUM_PMKID_CACHE);
                backupPMKIDIndex = adapter->securitypriv.PMKIDIndex;