batman-adv: iv_ogm, fix coding style
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 26 Dec 2014 11:41:35 +0000 (12:41 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 3 Jun 2015 08:58:31 +0000 (10:58 +0200)
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>
net/batman-adv/bat_iv_ogm.c

index 23c41d17d999e47f5d3a233dd20ad8e0d6bf2522..0019f1bfbe8b01bbc6c92609d1206314dbdba56d 100644 (file)
@@ -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;
 
This page took 0.027185 seconds and 5 git commands to generate.