git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8004a0c
)
staging: rtl8712: fix Prefer ether_addr_copy() over memcpy()
author
Heba Aamer
<heba93aamer@gmail.com>
Thu, 29 Jan 2015 22:11:36 +0000
(
00:11
+0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:15:43 +0000
(17:15 +0800)
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 <heba93aamer@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_intf.c
patch
|
blob
|
history
diff --cc
drivers/staging/rtl8712/usb_intf.c
Simple merge