]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
batman-adv: fix counter summary length
authorMarek Lindner <lindner_marek@yahoo.de>
Sat, 23 Jun 2012 09:46:05 +0000 (11:46 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Sun, 1 Jul 2012 20:47:23 +0000 (22:47 +0200)
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>
net/batman-adv/main.h

index 8193650e54961b1301d26c3e54b88c39aa3b7fe5..b8d4ac17f0017113145881fb395eb9dc312ee3d0 100644 (file)
@@ -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);