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)
commit8f34b388786a952382c829453f280384f1bf3886
treef831bd2e625735e24a64b786e06aa5159cf69b39
parentfc1f86936651191ca51e532083206efb351ccd9c
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
This page took 0.025745 seconds and 5 git commands to generate.