diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-06 18:06:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-07 13:39:51 +0100 |
commit | 0a14501ed818ff51eed237bbe5009d0d784e4450 (patch) | |
tree | 38ecb48669d93876eb747ec0b2e27c2f52563364 /drivers/net/ethernet/hisilicon/hns | |
parent | 8017c4d8173cfe086420dc5710d631cabd03ef67 (diff) | |
download | linux-stable-0a14501ed818ff51eed237bbe5009d0d784e4450.tar.gz linux-stable-0a14501ed818ff51eed237bbe5009d0d784e4450.tar.bz2 linux-stable-0a14501ed818ff51eed237bbe5009d0d784e4450.zip |
eth: fwnode: remove the addr len from mac helpers
All callers pass in ETH_ALEN and the function itself
will return -EINVAL for any other address length.
Just assume it's ETH_ALEN like all other mac address
helpers (nvm, of, platform).
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_enet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index 12b916399ba7..1195f64fb161 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -1212,7 +1212,7 @@ static void hns_init_mac_addr(struct net_device *ndev) { struct hns_nic_priv *priv = netdev_priv(ndev); - if (device_get_mac_address(priv->dev, ndev->dev_addr, ETH_ALEN)) { + if (device_get_mac_address(priv->dev, ndev->dev_addr)) { eth_hw_addr_random(ndev); dev_warn(priv->dev, "No valid mac, use random mac %pM", ndev->dev_addr); |