From: Joe Perches Date: Tue, 3 Mar 2015 03:54:55 +0000 (-0800) Subject: bluetooth: Use eth__addr instead of memset X-Git-Tag: MMI-PSA29.97-13-9~10281^2~359 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=211b85349ced1cf573ba0ec376038d8ec76885fb;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git bluetooth: Use eth__addr instead of memset Use the built-in function instead of memset. Signed-off-by: Joe Perches Acked-by: Marcel Holtmann Signed-off-by: David S. Miller --- 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);