Commit 9100eb01 authored by David S. Miller's avatar David S. Miller

mac89x0: Fix build error.

Need to use the new 'saddr' variable not the void 'addr' in
set_mac_address().
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0695512a
...@@ -591,13 +591,13 @@ static void set_multicast_list(struct net_device *dev) ...@@ -591,13 +591,13 @@ static void set_multicast_list(struct net_device *dev)
static int set_mac_address(struct net_device *dev, void *addr) static int set_mac_address(struct net_device *dev, void *addr)
{ {
int i;
struct sockaddr *saddr = addr; struct sockaddr *saddr = addr;
int i;
if (!is_valid_ether_addr(addr->sa_data)) if (!is_valid_ether_addr(saddr->sa_data))
return -EADDRNOTAVAIL; return -EADDRNOTAVAIL;
memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); memcpy(dev->dev_addr, saddr->sa_data, ETH_ALEN);
printk("%s: Setting MAC address to %pM\n", dev->name, dev->dev_addr); printk("%s: Setting MAC address to %pM\n", dev->name, dev->dev_addr);
/* set the Ethernet address */ /* set the Ethernet address */
......
Markdown is supported
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