mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-14 18:45:18 -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:
committed by
Greg Kroah-Hartman
parent
483557be8e
commit
b319c6a35d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user