batman-adv: Less function calls in batadv_is_ap_isolated() after error detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 11 Mar 2016 12:10:20 +0000 (13:10 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 18 Oct 2016 13:02:43 +0000 (15:02 +0200)
commit393b299d2cb804f09e05aafbdce9e3d3f61438cf
tree5eefac18ba3aadb904d781a04be42e8330ec8294
parent0566df307bc882bfca4128521f01a48f4579d27d
batman-adv: Less function calls in batadv_is_ap_isolated() after error detection

The variables "tt_local_entry" and "tt_global_entry" were eventually
checked again despite of a corresponding null pointer test before.

* Avoid this double check by reordering a function call sequence
  and the better selection of jump targets.

* Omit the initialisation for these variables at the beginning then.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/translation-table.c