diff options
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 8193650e5496..b8d4ac17f001 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, | |||
265 | static inline uint64_t batadv_sum_counter(struct batadv_priv *bat_priv, | 265 | static inline uint64_t batadv_sum_counter(struct batadv_priv *bat_priv, |
266 | size_t idx) | 266 | size_t idx) |
267 | { | 267 | { |
268 | uint64_t *counters; | 268 | uint64_t *counters, sum = 0; |
269 | int cpu; | 269 | int cpu; |
270 | int sum = 0; | ||
271 | 270 | ||
272 | for_each_possible_cpu(cpu) { | 271 | for_each_possible_cpu(cpu) { |
273 | counters = per_cpu_ptr(bat_priv->bat_counters, cpu); | 272 | counters = per_cpu_ptr(bat_priv->bat_counters, cpu); |