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:
08f6dd8
)
net: tile: Use helpers from linux/etherdevice.h to check/set MAC
author
Tobias Klauser
<tklauser@distanz.ch>
Fri, 30 May 2014 07:47:17 +0000
(09:47 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sat, 31 May 2014 00:06:23 +0000
(17:06 -0700)
Use is_zero_ether_addr() to check for the MAC address being all zeros instead of
open coding the check.
Also use ether_addr_copy() instead of a manual memcpy() to set the
netdev->dev_addr.
Furthermore, get rid of a redundant assignment of netdev->addr_len. This is
already set by ether_setup() which is called in tile_net_setup().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tile/tilegx.c
patch
|
blob
|
history
diff --cc
drivers/net/ethernet/tile/tilegx.c
Simple merge