[v2,18/26] batman-adv: iv_ogm, fix coding style

Message ID 1419594103-10928-19-git-send-email-mpa@pengutronix.de (mailing list archive)
State Accepted, archived
Headers

Commit Message

Markus Pargmann Dec. 26, 2014, 11:41 a.m. UTC
  The kernel coding style says, that there should not be multiple
assignments in one row.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 bat_iv_ogm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Marek Lindner Feb. 28, 2015, 3:59 p.m. UTC | #1
On Friday, December 26, 2014 12:41:35 Markus Pargmann wrote:
> The kernel coding style says, that there should not be multiple
> assignments in one row.
> 
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> ---
>  bat_iv_ogm.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied in revision 63c15a5.

Thanks,
Marek
  

Patch

diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
index ab48865130b0..39ec3eeec41f 100644
--- a/bat_iv_ogm.c
+++ b/bat_iv_ogm.c
@@ -66,7 +66,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;