diff options
author | Joe Perches <joe@perches.com> | 2015-03-02 19:54:51 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 17:01:37 -0500 |
commit | 3b6ed26d8b964bdb1f963eb2fab90fdd26a11452 (patch) | |
tree | 46368bb8e0a77a73aad500be9e5b4678671b49a8 | |
parent | 1667c942e72346df1f41d4171de5a647b6b22dfc (diff) | |
download | linux-stable-3b6ed26d8b964bdb1f963eb2fab90fdd26a11452.tar.gz linux-stable-3b6ed26d8b964bdb1f963eb2fab90fdd26a11452.tar.bz2 linux-stable-3b6ed26d8b964bdb1f963eb2fab90fdd26a11452.zip |
xen: Use eth_<foo>_addr instead of memset
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>
-rw-r--r-- | drivers/net/xen-netback/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index f38227afe099..4ae98e2ad719 100644 --- 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); |