summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-02 19:54:55 -0800
committerDavid S. Miller <davem@davemloft.net>2015-03-03 17:01:37 -0500
commit211b85349ced1cf573ba0ec376038d8ec76885fb (patch)
treec396565c4fd1abe0f6b9c03727403cee8f893e4b /net/bluetooth
parent19ffa562ec138594571896f73c014873db11fc97 (diff)
downloadlinux-211b85349ced1cf573ba0ec376038d8ec76885fb.tar.gz
linux-211b85349ced1cf573ba0ec376038d8ec76885fb.tar.bz2
linux-211b85349ced1cf573ba0ec376038d8ec76885fb.zip
bluetooth: 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: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/bnep/netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/bnep/netdev.c b/net/bluetooth/bnep/netdev.c
index 4b488ec26105..6ceb5d36a32b 100644
--- a/net/bluetooth/bnep/netdev.c
+++ b/net/bluetooth/bnep/netdev.c
@@ -218,7 +218,7 @@ static const struct net_device_ops bnep_netdev_ops = {
void bnep_net_setup(struct net_device *dev)
{
- memset(dev->broadcast, 0xff, ETH_ALEN);
+ eth_broadcast_addr(dev->broadcast);
dev->addr_len = ETH_ALEN;
ether_setup(dev);