staging: rtl8188eu: Fix prefer ether_addr_copy() over memcpy()
This patch fixes "Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)" in rtw_ap.c Pahole showed that the addresses are aligned. Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f9800f82b6
commit
6d36fe3edc
1 changed files with 2 additions and 2 deletions
|
@ -888,7 +888,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
||||||
|
|
||||||
pbss_network->Rssi = 0;
|
pbss_network->Rssi = 0;
|
||||||
|
|
||||||
memcpy(pbss_network->MacAddress, myid(&(padapter->eeprompriv)), ETH_ALEN);
|
ether_addr_copy(pbss_network->MacAddress, myid(&(padapter->eeprompriv)));
|
||||||
|
|
||||||
/* beacon interval */
|
/* beacon interval */
|
||||||
p = rtw_get_beacon_interval_from_ie(ie);/* 8: TimeStamp, 2: Beacon Interval 2:Capability */
|
p = rtw_get_beacon_interval_from_ie(ie);/* 8: TimeStamp, 2: Beacon Interval 2:Capability */
|
||||||
|
@ -1164,7 +1164,7 @@ int rtw_acl_add_sta(struct adapter *padapter, u8 *addr)
|
||||||
if (!paclnode->valid) {
|
if (!paclnode->valid) {
|
||||||
INIT_LIST_HEAD(&paclnode->list);
|
INIT_LIST_HEAD(&paclnode->list);
|
||||||
|
|
||||||
memcpy(paclnode->addr, addr, ETH_ALEN);
|
ether_addr_copy(paclnode->addr, addr);
|
||||||
|
|
||||||
paclnode->valid = true;
|
paclnode->valid = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue