projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0695512
)
mac89x0: Fix build error.
author
David S. Miller
<
[email protected]
>
Tue, 28 Feb 2012 20:48:42 +0000
(15:48 -0500)
committer
David S. Miller
<
[email protected]
>
Tue, 28 Feb 2012 20:48:42 +0000
(15:48 -0500)
Need to use the new 'saddr' variable not the void 'addr' in
set_mac_address().
Reported-by: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/cirrus/mac89x0.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cirrus/mac89x0.c
b/drivers/net/ethernet/cirrus/mac89x0.c
index 419825ceab3b515560f27c4278ba9ff19131b636..932fdccc339aea30e95d39e668adbdc565dd2f3d 100644
(file)
--- a/
drivers/net/ethernet/cirrus/mac89x0.c
+++ b/
drivers/net/ethernet/cirrus/mac89x0.c
@@
-591,13
+591,13
@@
static void set_multicast_list(struct net_device *dev)
static int set_mac_address(struct net_device *dev, void *addr)
{
- int i;
struct sockaddr *saddr = addr;
+ int i;
- if (!is_valid_ether_addr(addr->sa_data))
+ if (!is_valid_ether_addr(
s
addr->sa_data))
return -EADDRNOTAVAIL;
- memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
+ memcpy(dev->dev_addr,
s
addr->sa_data, ETH_ALEN);
printk("%s: Setting MAC address to %pM\n", dev->name, dev->dev_addr);
/* set the Ethernet address */