mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
staging: rtl8723au: Remove unnecessary memset() followed by a memcpy() into the same space
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
483557be8e
commit
b319c6a35d
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue