aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc/smsc911x.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-01 22:04:40 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-02 17:04:45 -0400
commitd458cdf712e0c671e8e819abb16ecd6e44f9daec (patch)
treeff93ce90fee219f2690a4f51f985815422664b7a /drivers/net/ethernet/smsc/smsc911x.c
parent0b3d8e087bbee2a4e3f479d538a7edd3f1d2950c (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/smsc/smsc911x.c')
-rw-r--r--drivers/net/ethernet/smsc/smsc911x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index 5fdbc2686eb3..01f8459c3213 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2502,7 +2502,7 @@ static int smsc911x_drv_probe(struct platform_device *pdev)
2502 SMSC_TRACE(pdata, probe, 2502 SMSC_TRACE(pdata, probe,
2503 "MAC Address is specified by configuration"); 2503 "MAC Address is specified by configuration");
2504 } else if (is_valid_ether_addr(pdata->config.mac)) { 2504 } else if (is_valid_ether_addr(pdata->config.mac)) {
2505 memcpy(dev->dev_addr, pdata->config.mac, 6); 2505 memcpy(dev->dev_addr, pdata->config.mac, ETH_ALEN);
2506 SMSC_TRACE(pdata, probe, 2506 SMSC_TRACE(pdata, probe,
2507 "MAC Address specified by platform data"); 2507 "MAC Address specified by platform data");
2508 } else { 2508 } else {