mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
0aca2369b1
commit
0c5e45b63d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user