Re: [RFC 02/16] ieee802154: 6lowpan: remove set to zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 03/08/15 08:23, Alexander Aring wrote:
Internal mechanism by calling netdev_alloc which use kzalloc already
sets these variables to zero. This patch cleanup the setup of net_device.

Signed-off-by: Alexander Aring<alex.aring@xxxxxxxxx>
---
  net/ieee802154/6lowpan/core.c | 2 --
  1 file changed, 2 deletions(-)

diff --git a/net/ieee802154/6lowpan/core.c b/net/ieee802154/6lowpan/core.c
index 46efaca..ca331bc 100644
--- a/net/ieee802154/6lowpan/core.c
+++ b/net/ieee802154/6lowpan/core.c
@@ -88,9 +88,7 @@ static void lowpan_setup(struct net_device *ldev)
  	ldev->hard_header_len	= 2 + 1 + 20 + 14;
  	ldev->needed_tailroom	= 2; /* FCS */
  	ldev->mtu		= IPV6_MIN_MTU;
-	ldev->tx_queue_len	= 0;
  	ldev->flags		= IFF_BROADCAST | IFF_MULTICAST;
-	ldev->watchdog_timeo	= 0;
ldev->netdev_ops = &lowpan_netdev_ops;
  	ldev->header_ops	= &lowpan_header_ops;

Reviewed-by: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx>

regards
Stefan Schmidt
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux