Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30207d7b authored by Himanshu Jha's avatar Himanshu Jha Committed by Greg Kroah-Hartman
Browse files

staging: rtlwifi: remove memset before memcpy



calling memcpy immediately after memset with the same region of memory
makes memset redundant.

Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 56277035
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2558,7 +2558,6 @@ bool rtl_check_beacon_key(struct ieee80211_hw *hw, void *data, unsigned int len)

	if (!cur_bcn_key->valid) {
		/* update cur_beacon_keys */
		memset(cur_bcn_key, 0, sizeof(bcn_key));
		memcpy(cur_bcn_key, &bcn_key, sizeof(bcn_key));
		cur_bcn_key->valid = true;