projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ffa56
)
bluetooth: Use eth_<foo>_addr instead of memset
author
Joe Perches
<joe@perches.com>
Tue, 3 Mar 2015 03:54:55 +0000
(19:54 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Mar 2015 22:01:37 +0000
(17:01 -0500)
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>
net/bluetooth/bnep/netdev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/bnep/netdev.c
b/net/bluetooth/bnep/netdev.c
index 4b488ec261054830c6f45bfe3a6a3a9cfd65f316..6ceb5d36a32bdc375e635d34085a9b016568e16a 100644
(file)
--- 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);