mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-22 05:25:03 +00:00
eth_hw_addr_set: use memcpy
eth_hw_addr_set() replaces memcpy() calls so we can't use ether_addr_copy() which assumes both arguments are 2-bytes aligned.3f6cffb860
adeef3e321
This commit is contained in:
parent
eeac05662a
commit
b9cfa37026
@ -221,7 +221,7 @@ typedef unsigned long systime;
|
|||||||
/* Porting from linux kernel v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */
|
/* Porting from linux kernel v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */
|
||||||
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
|
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
|
||||||
{
|
{
|
||||||
ether_addr_copy(dev->dev_addr, addr);
|
memcpy(dev->dev_addr, addr, ETH_ALEN);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user