summaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-12-26 12:41:35 +0100
committerAntonio Quartulli <antonio@meshcoding.com>2015-06-03 10:58:31 +0200
commit6c4a1622e21fde1a0287ada3bedcbf75ddbc80ac (patch)
tree05fd986017f075cba4c14dc42a39b042b57ddeca /net/batman-adv
parent9f52ee19c3c73763138ccc307858d9877242c0ad (diff)
downloadtalos-obmc-linux-6c4a1622e21fde1a0287ada3bedcbf75ddbc80ac.tar.gz
talos-obmc-linux-6c4a1622e21fde1a0287ada3bedcbf75ddbc80ac.zip
batman-adv: iv_ogm, fix coding style
The kernel coding style says, that there should not be multiple assignments in one row. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/bat_iv_ogm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 23c41d17d999..0019f1bfbe8b 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -64,7 +64,9 @@ static void batadv_ring_buffer_set(uint8_t lq_recv[], uint8_t *lq_index,
static uint8_t batadv_ring_buffer_avg(const uint8_t lq_recv[])
{
const uint8_t *ptr;
- uint16_t count = 0, i = 0, sum = 0;
+ uint16_t count = 0;
+ uint16_t i = 0;
+ uint16_t sum = 0;
ptr = lq_recv;
OpenPOWER on IntegriCloud