From: Heba Aamer Date: Thu, 29 Jan 2015 22:11:36 +0000 (+0200) Subject: staging: rtl8712: fix Prefer ether_addr_copy() over memcpy() X-Git-Tag: fixes-v4.0-rc1~99^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36e4d8826b317080e283e4edd08bf8d5ac706f38;p=pandora-kernel.git staging: rtl8712: fix Prefer ether_addr_copy() over memcpy() This patch fixes the following checkpatch.pl warning: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) pahole showed that the struct used pnetdev->dev_addr is aligned to u16. Moreover mac is a simple array, pdata is a pointer that starts from an even offset. Signed-off-by: Heba Aamer Acked-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed