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>
This commit is contained in:

committed by
David S. Miller

parent
0b3d8e087b
commit
d458cdf712
@@ -1853,7 +1853,7 @@ static int davinci_emac_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
/* MAC addr and PHY mask , RMII enable info from platform_data */
|
||||
memcpy(priv->mac_addr, pdata->mac_addr, 6);
|
||||
memcpy(priv->mac_addr, pdata->mac_addr, ETH_ALEN);
|
||||
priv->phy_id = pdata->phy_id;
|
||||
priv->rmii_en = pdata->rmii_en;
|
||||
priv->version = pdata->version;
|
||||
|
Reference in New Issue
Block a user