batman-adv: tvlv realloc, move error handling into if block
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 26 Dec 2014 11:41:23 +0000 (12:41 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Fri, 29 May 2015 08:13:36 +0000 (10:13 +0200)
commit16b9ce83fb850602794a3bc534693362408a5408
tree690d3c19f757404b86495ecb6f266cfeb9c42a89
parent9bb218828c8f4fa6587af93e248903c96ce469d0
batman-adv: tvlv realloc, move error handling into if block

Instead of hiding the normal function flow inside an if block, we should
just put the error handling into the if block.

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