lkml.org 
[lkml]   [2015]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH net-next 10/14] bluetooth: Use eth_<foo>_addr instead of memset
    From
    Date
    Hi Joe,

    > Use the built-in function instead of memset.
    >
    > Signed-off-by: Joe Perches <joe@perches.com>
    > ---
    > net/bluetooth/bnep/netdev.c | 2 +-
    > 1 file changed, 1 insertion(+), 1 deletion(-)
    >
    > diff --git a/net/bluetooth/bnep/netdev.c b/net/bluetooth/bnep/netdev.c
    > index 4b488ec..6ceb5d3 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;

    Acked-by: Marcel Holtmann <marcel@holtmann.org>

    Regards

    Marcel



    \
     
     \ /
      Last update: 2015-03-03 08:41    [W:5.232 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site