mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -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 key.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:
parent
0c074871f7
commit
5de55f6524
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ bool KeybSetKey(
|
|||
}
|
||||
}
|
||||
if (j < (MAX_KEY_TABLE-1)) {
|
||||
memcpy(pTable->KeyTable[j].abyBSSID, pbyBSSID, ETH_ALEN);
|
||||
ether_addr_copy(pTable->KeyTable[j].abyBSSID, pbyBSSID);
|
||||
pTable->KeyTable[j].bInUse = true;
|
||||
if ((dwKeyIndex & PAIRWISE_KEY) != 0) {
|
||||
// Pairwise key
|
||||
|
|
|
|||
Loading…
Reference in a new issue