From patchwork Sat Jun 23 09:46:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 2096 Return-Path: Received: from nm23-vm4.bullet.mail.ukl.yahoo.com (nm23-vm4.bullet.mail.ukl.yahoo.com [217.146.176.134]) by open-mesh.org (Postfix) with SMTP id BB37B600735 for ; Sat, 23 Jun 2012 11:46:16 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key; insecure key) header.i=@yahoo.de; dkim-adsp=pass Received: from [217.146.183.183] by nm23.bullet.mail.ukl.yahoo.com with NNFMP; 23 Jun 2012 09:46:15 -0000 Received: from [77.238.184.64] by tm14.bullet.mail.ukl.yahoo.com with NNFMP; 23 Jun 2012 09:46:15 -0000 Received: from [127.0.0.1] by smtp133.mail.ukl.yahoo.com with NNFMP; 23 Jun 2012 09:46:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1340444775; bh=z2zzyRSxijrgzwkY8ajm2zM9of5UfW8i+7WA4WvNNNo=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=aMTBuglQzt8S5z2RdYV1F65ktNGf4zSTDJUcJii/QYnsVjKk2O+71UX4L5arZUc7d925FvkZ4bUkyKTQA+sJow72NpuGCB2qHXqX+HIBdOHpV9BewrHRGnNk+y1ZKpwar2IVFv6JyOHRVx1aB5I6BmUMC1876OLz5AtCOqdkXkI= X-Yahoo-Newman-Id: 426518.40712.bm@smtp133.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: qu5Eh.QVM1kYbZZc560ct1l5r.uR_hapyl6wegwkuvEkJrl vFqpJ5jLRdFq1xU7jsXiZY7rhuFPrI6S8LNxJxKunpuTRvfV6PcykFr0ay6. YEIvlmg.MUeTWogYudsA6OtqP4coRF0ZN8YgpQV4OZUpWauCZeBFpzY3cpRV yuOUnBzigwjRgcbZ5ZqiIR3MMNkS3KFkJJPnZwE8w_ihDOsrylRN2lZ0xyYU 32PtHRChKVJhH4pAoxS7sq1.ZsRKla3cG1ULAEqDnyd9YyGVfWuMwHMSrk_R kf3rp7SF..NDq5Fe_.SCKeH_Onemf4sTL.dPYFQpE_9rcVMPGq.GKisovpUE qPqbo6K3qGAkvJuBuwJ21aiqW9MKPS.7IQR5zj9MKAuz8H7trbHWdmFWGI4l T X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- Received: from localhost (lindner_marek@80.214.1.31 with plain) by smtp133.mail.ukl.yahoo.com with SMTP; 23 Jun 2012 09:46:14 +0000 GMT From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Sat, 23 Jun 2012 11:46:05 +0200 Message-Id: <1340444765-4959-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.9.1 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: fix counter summary length X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 09:46:17 -0000 Signed-off-by: Marek Lindner Acked-by: Martin Hundebøll --- 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);