]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: iv_ogm_can_aggregate, code readability
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 26 Dec 2014 11:41:29 +0000 (12:41 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Fri, 29 May 2015 08:13:37 +0000 (10:13 +0200)
commit177df9276dd90d4438c1a002c37bfb7e5a346eeb
treef831bd2e625735e24a64b786e06aa5159cf69b39
parent30f3cb745288a2f639e0ac7169541f20a1098030
batman-adv: iv_ogm_can_aggregate, code readability

This patch tries to increase code readability by negating the first if
block and rearranging some of the other conditional blocks. This way we
save an indentation level, we also save some allocation that is not
necessary for one of the conditions.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/bat_iv_ogm.c