aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-28 13:21:28 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-10-28 18:19:08 -0400
commit33d4189f51f0dbb522a4d81aafc7edb2e048c570 (patch)
treeca5f92d822d5aec6f1ddfed061fcf4b4c4a18d28 /net/mac802154
parent538181a879368f54544b91e414ea56a88008782b (diff)
mac802154: iface: remove assign to zero
These variables should already be zero, so we remove the extra assign to zero. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/iface.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index e10fd786a11f..2423aa7671df 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -409,7 +409,6 @@ void mac802154_wpan_setup(struct net_device *dev)
409 dev->tx_queue_len = 300; 409 dev->tx_queue_len = 300;
410 dev->type = ARPHRD_IEEE802154; 410 dev->type = ARPHRD_IEEE802154;
411 dev->flags = IFF_NOARP | IFF_BROADCAST; 411 dev->flags = IFF_NOARP | IFF_BROADCAST;
412 dev->watchdog_timeo = 0;
413 412
414 dev->destructor = mac802154_wpan_free; 413 dev->destructor = mac802154_wpan_free;
415 dev->netdev_ops = &mac802154_wpan_ops; 414 dev->netdev_ops = &mac802154_wpan_ops;
@@ -419,7 +418,6 @@ void mac802154_wpan_setup(struct net_device *dev)
419 sdata->type = IEEE802154_DEV_WPAN; 418 sdata->type = IEEE802154_DEV_WPAN;
420 419
421 sdata->chan = MAC802154_CHAN_NONE; 420 sdata->chan = MAC802154_CHAN_NONE;
422 sdata->page = 0;
423 421
424 spin_lock_init(&sdata->mib_lock); 422 spin_lock_init(&sdata->mib_lock);
425 mutex_init(&sdata->sec_mtx); 423 mutex_init(&sdata->sec_mtx);
@@ -444,14 +442,11 @@ void mac802154_monitor_setup(struct net_device *dev)
444{ 442{
445 struct ieee802154_sub_if_data *sdata; 443 struct ieee802154_sub_if_data *sdata;
446 444
447 dev->addr_len = 0;
448 dev->hard_header_len = 0;
449 dev->needed_tailroom = 2; /* room for FCS */ 445 dev->needed_tailroom = 2; /* room for FCS */
450 dev->mtu = IEEE802154_MTU; 446 dev->mtu = IEEE802154_MTU;
451 dev->tx_queue_len = 10; 447 dev->tx_queue_len = 10;
452 dev->type = ARPHRD_IEEE802154_MONITOR; 448 dev->type = ARPHRD_IEEE802154_MONITOR;
453 dev->flags = IFF_NOARP | IFF_BROADCAST; 449 dev->flags = IFF_NOARP | IFF_BROADCAST;
454 dev->watchdog_timeo = 0;
455 450
456 dev->destructor = free_netdev; 451 dev->destructor = free_netdev;
457 dev->netdev_ops = &mac802154_monitor_ops; 452 dev->netdev_ops = &mac802154_monitor_ops;
@@ -461,5 +456,4 @@ void mac802154_monitor_setup(struct net_device *dev)
461 sdata->type = IEEE802154_DEV_MONITOR; 456 sdata->type = IEEE802154_DEV_MONITOR;
462 457
463 sdata->chan = MAC802154_CHAN_NONE; /* not initialized */ 458 sdata->chan = MAC802154_CHAN_NONE; /* not initialized */
464 sdata->page = 0;
465} 459}