mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 02:59:19 -04:00
staging: vt6655: Use ether_addr_copy function
This patch fixes the following checkpatch.pl warnings: WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)" in file iwctl.c Pahole shows that the addresses are aligned Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
84995ca471
commit
038862c4a3
@@ -1728,7 +1728,7 @@ int iwctl_siwencodeext(struct net_device *dev,
|
||||
goto error;
|
||||
}
|
||||
//recover addr
|
||||
memcpy(addr, ext->addr.sa_data, ETH_ALEN);
|
||||
ether_addr_copy(addr, ext->addr.sa_data);
|
||||
//recover key_idx
|
||||
key_idx = (wrq->flags&IW_ENCODE_INDEX) - 1;
|
||||
//recover set_tx
|
||||
|
||||
Reference in New Issue
Block a user