batman-adv: Split a condition check
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Nov 2015 18:20:34 +0000 (19:20 +0100)
committerAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2016 12:56:00 +0000 (20:56 +0800)
commite087f34f28d8597f7c82f079337939367ba96537
treef20ea1d8ed246002f14679e52b6af534f2fe9aad
parentf75a33aeed0776f52da05276c2ef98e16d680a6b
batman-adv: Split a condition check

Let us split a check for a condition at the beginning of the
batadv_is_ap_isolated() function so that a direct return can be performed
in this function if the variable "vlan" contained a null pointer.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/translation-table.c