* [B.A.T.M.A.N.] [PATCH] batman-adv: fix counter summary length
@ 2012-06-23 9:46 Marek Lindner
2012-06-25 11:21 ` Martin Hundebøll
0 siblings, 1 reply; 3+ messages in thread
From: Marek Lindner @ 2012-06-23 9:46 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Marek Lindner
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
main.h | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/main.h b/main.h
index e76f9c6..6dca9c4 100644
--- a/main.h
+++ b/main.h
@@ -267,9 +267,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);
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-25 14:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-23 9:46 [B.A.T.M.A.N.] [PATCH] batman-adv: fix counter summary length Marek Lindner
2012-06-25 11:21 ` Martin Hundebøll
2012-06-25 14:35 ` Marek Lindner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.