batman-adv: Simplify gw_check_election(), use gw_get_selected()
authorLinus Lüssing <linus.luessing@web.de>
Mon, 14 Mar 2011 22:43:33 +0000 (22:43 +0000)
committerSven Eckelmann <sven@narfation.org>
Sun, 17 Apr 2011 19:11:01 +0000 (21:11 +0200)
commit57f0c07c4d0da8bcc23e21c330fe9c7c5cf776b5
tree116da9bca37ef83067054dd613222da8f78f33bc
parent4c804850572f70a2350e4d1e79d6659392b07733
batman-adv: Simplify gw_check_election(), use gw_get_selected()

gw_get_selected() can get us the desired orig_node directly, therefore
reusing that function in gw_check_election().

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/gateway_client.c