batman-adv: fix counter summary length
Commit Message
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
main.h | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Comments
On 06/23/2012 11:46 AM, Marek Lindner wrote:
> Signed-off-by: Marek Lindner<lindner_marek@yahoo.de>
Acked-by: Martin Hundebøll <martin@hundeboll.net>
On Monday, June 25, 2012 13:21:49 Martin Hundebøll wrote:
> On 06/23/2012 11:46 AM, Marek Lindner wrote:
> > Signed-off-by: Marek Lindner<lindner_marek@yahoo.de>
>
> Acked-by: Martin Hundebøll <martin@hundeboll.net>
Applied in revision ce3dbe0.
Regards,
Marek
@@ -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);