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:
1667c94
)
xen: Use eth_<foo>_addr instead of memset
author
Joe Perches
<joe@perches.com>
Tue, 3 Mar 2015 03:54:51 +0000
(19:54 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Mar 2015 22:01:37 +0000
(17:01 -0500)
Use the built-in function instead of memset.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/interface.c
patch
|
blob
|
history
diff --git
a/drivers/net/xen-netback/interface.c
b/drivers/net/xen-netback/interface.c
index f38227afe0998a668c40e2194def6128895bb077..4ae98e2ad719ff4533bb8430cdec633663745bfb 100644
(file)
--- a/
drivers/net/xen-netback/interface.c
+++ b/
drivers/net/xen-netback/interface.c
@@
-438,7
+438,7
@@
struct xenvif *xenvif_alloc(struct device *parent, domid_t domid,
* stolen by an Ethernet bridge for STP purposes.
* (FE:FF:FF:FF:FF:FF)
*/
-
memset(dev->dev_addr, 0xFF, ETH_ALEN
);
+
eth_broadcast_addr(dev->dev_addr
);
dev->dev_addr[0] &= ~0x01;
netif_carrier_off(dev);