diff options
author | Joe Perches <joe@perches.com> | 2013-10-01 22:04:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-02 17:04:45 -0400 |
commit | d458cdf712e0c671e8e819abb16ecd6e44f9daec (patch) | |
tree | ff93ce90fee219f2690a4f51f985815422664b7a /drivers/net/ethernet/sun/cassini.c | |
parent | 0b3d8e087bbee2a4e3f479d538a7edd3f1d2950c (diff) |
net:drivers/net: Miscellaneous conversions to ETH_ALEN
Convert the memset/memcpy uses of 6 to ETH_ALEN
where appropriate.
Also convert some struct definitions and u8 array
declarations of [6] to ETH_ALEN.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/cassini.c')
-rw-r--r-- | drivers/net/ethernet/sun/cassini.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c index 759441b29e53..a72ecc42885d 100644 --- a/drivers/net/ethernet/sun/cassini.c +++ b/drivers/net/ethernet/sun/cassini.c | |||
@@ -3354,7 +3354,7 @@ use_random_mac_addr: | |||
3354 | #if defined(CONFIG_SPARC) | 3354 | #if defined(CONFIG_SPARC) |
3355 | addr = of_get_property(cp->of_node, "local-mac-address", NULL); | 3355 | addr = of_get_property(cp->of_node, "local-mac-address", NULL); |
3356 | if (addr != NULL) { | 3356 | if (addr != NULL) { |
3357 | memcpy(dev_addr, addr, 6); | 3357 | memcpy(dev_addr, addr, ETH_ALEN); |
3358 | goto done; | 3358 | goto done; |
3359 | } | 3359 | } |
3360 | #endif | 3360 | #endif |