diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-12-16 00:53:15 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-01-12 05:58:23 -0500 |
commit | 0c430d0d7b8bafa74959a84156ef0bda1417a3d4 (patch) | |
tree | 32e476273adc485ffe0e5f8751086219ef8b94af /net/batman-adv/soft-interface.c | |
parent | 9338026107166b54d54ef875978c9c3dca3aaee5 (diff) |
batman-adv: unbloat batadv_priv if debug is not enabled
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 57714f83ede4..3d6816667bfc 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -493,7 +493,9 @@ struct net_device *batadv_softif_create(const char *name) | |||
493 | atomic_set(&bat_priv->gw_bandwidth, 41); | 493 | atomic_set(&bat_priv->gw_bandwidth, 41); |
494 | atomic_set(&bat_priv->orig_interval, 1000); | 494 | atomic_set(&bat_priv->orig_interval, 1000); |
495 | atomic_set(&bat_priv->hop_penalty, 30); | 495 | atomic_set(&bat_priv->hop_penalty, 30); |
496 | #ifdef CONFIG_BATMAN_ADV_DEBUG | ||
496 | atomic_set(&bat_priv->log_level, 0); | 497 | atomic_set(&bat_priv->log_level, 0); |
498 | #endif | ||
497 | atomic_set(&bat_priv->fragmentation, 1); | 499 | atomic_set(&bat_priv->fragmentation, 1); |
498 | atomic_set(&bat_priv->bcast_queue_left, BATADV_BCAST_QUEUE_LEN); | 500 | atomic_set(&bat_priv->bcast_queue_left, BATADV_BCAST_QUEUE_LEN); |
499 | atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN); | 501 | atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN); |