]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: Use ether_addr_copy function
authorDilek Uzulmez <dilekuzulmez@gmail.com>
Wed, 8 Oct 2014 15:38:51 +0000 (18:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:16 +0000 (10:29 +0800)
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>
drivers/staging/vt6655/key.c

index 12e8b87c0a60788da4ca37402a722c81beccfa15..02caffb06e59bbcc088464431917a53c7aa20f78 100644 (file)
@@ -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