Commit 15b8f4cf authored by Danny Kukawka's avatar Danny Kukawka Committed by David S. Miller
Browse files

mcs7830: unify return value of .ndo_set_mac_address if address is invalid

Unify return value of .ndo_set_mac_address if the given address
isn't valid. Return -EADDRNOTAVAIL as eth_mac_addr() already does
if is_valid_ether_addr() fails.
Signed-off-by: default avatarDanny Kukawka <>
Signed-off-by: default avatarDavid S. Miller <>
parent 504f9b5a
......@@ -239,7 +239,7 @@ static int mcs7830_set_mac_address(struct net_device *netdev, void *p)
return -EBUSY;
if (!is_valid_ether_addr(addr->sa_data))
return -EINVAL;
ret = mcs7830_hif_set_mac_address(dev, addr->sa_data);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment