summaryrefslogtreecommitdiff
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2012-06-23 09:46:05 (GMT)
committerAntonio Quartulli <ordex@autistici.org>2012-07-01 20:47:23 (GMT)
commit0c5e45b63d22c6efa6f829c617d8f36688e53c5d (patch)
treea8a385bd86c2d5bf5dc0942bfed3d700dfa6072f /net/batman-adv/main.h
parent0aca2369b19de3f3f1affcc5359c3d079e4e1940 (diff)
downloadlinux-0c5e45b63d22c6efa6f829c617d8f36688e53c5d.tar.xz
batman-adv: fix counter summary length
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Acked-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 8193650..b8d4ac1 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -265,9 +265,8 @@ static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx,
static inline uint64_t batadv_sum_counter(struct batadv_priv *bat_priv,
size_t idx)
{
- uint64_t *counters;
+ uint64_t *counters, sum = 0;
int cpu;
- int sum = 0;
for_each_possible_cpu(cpu) {
counters = per_cpu_ptr(bat_priv->bat_counters, cpu);