ieee802154: 6lowpan: remove set to zero
authorAlexander Aring <alex.aring@gmail.com>
Wed, 2 Sep 2015 12:21:19 +0000 (14:21 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Sep 2015 11:20:02 +0000 (13:20 +0200)
Internal mechanism by calling netdev_alloc which use kzalloc already
sets these variables to zero. This patch cleanup the setup of net_device.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/core.c

index 3b7521001a9e946b460d5f38a3f67f3e56beffc5..9f0cfa598e3aaee92167f1cadfd8222edcb5853d 100644 (file)
@@ -110,7 +110,6 @@ static void lowpan_setup(struct net_device *ldev)
        ldev->mtu               = IPV6_MIN_MTU;
        ldev->priv_flags        |= IFF_NO_QUEUE;
        ldev->flags             = IFF_BROADCAST | IFF_MULTICAST;
-       ldev->watchdog_timeo    = 0;
 
        ldev->netdev_ops        = &lowpan_netdev_ops;
        ldev->header_ops        = &lowpan_header_ops;