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>
This commit is contained in:
Joe Perches 2015-03-02 19:54:55 -08:00 committed by David S. Miller
parent 19ffa562ec
commit 211b85349c

View file

@ -218,7 +218,7 @@ static const struct net_device_ops bnep_netdev_ops = {
void bnep_net_setup(struct net_device *dev) void bnep_net_setup(struct net_device *dev)
{ {
memset(dev->broadcast, 0xff, ETH_ALEN); eth_broadcast_addr(dev->broadcast);
dev->addr_len = ETH_ALEN; dev->addr_len = ETH_ALEN;
ether_setup(dev); ether_setup(dev);