Skip to content

Commit

Permalink
bluetooth: Use eth_<foo>_addr instead of memset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and David S. Miller committed Mar 3, 2015
1 parent 19ffa56 commit 211b853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/bnep/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 211b853

Please sign in to comment.