checkpatch: prefer ether_addr_copy to memcpy(foo, bar, ETH_ALEN)
authorJoe Perches <joe@perches.com>
Thu, 23 Jan 2014 23:54:52 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:58 +0000 (16:36 -0800)
commit98a9bba51c6e47f69c4fa22cc39a600d2e39536c
treeb390dcdd936226bca71243d0cac5b27f8a34d4f4
parentbff5da4335256513497cc8c79f9a9d1665e09864
checkpatch: prefer ether_addr_copy to memcpy(foo, bar, ETH_ALEN)

ether_addr_copy was added for kernel version 3.14.  It's slightly
smaller/faster for some arches.  Encourage its use.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl