Commit 0c5e45b6 authored by Marek Lindner's avatar Marek Lindner Committed by Antonio Quartulli

batman-adv: fix counter summary length

Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
Acked-by: default avatarMartin Hundebøll <martin@hundeboll.net>
Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
parent 0aca2369
...@@ -265,9 +265,8 @@ static inline void batadv_add_counter(struct batadv_priv *bat_priv, size_t idx, ...@@ -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, static inline uint64_t batadv_sum_counter(struct batadv_priv *bat_priv,
size_t idx) size_t idx)
{ {
uint64_t *counters; uint64_t *counters, sum = 0;
int cpu; int cpu;
int sum = 0;
for_each_possible_cpu(cpu) { for_each_possible_cpu(cpu) {
counters = per_cpu_ptr(bat_priv->bat_counters, cpu); counters = per_cpu_ptr(bat_priv->bat_counters, cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment