diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-05-08 14:52:57 -0400 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-05-30 01:39:27 -0400 |
commit | e2cbc11c0e1225bd5fe183a967fc80df3db10745 (patch) | |
tree | 5e7bf4845b660067fdfb93e4cee836fa545a621f /net/batman-adv/unicast.c | |
parent | 55922c9d1b84b89cb946c777fddccb3247e7df2c (diff) |
batman-adv: move neigh_node->if_incoming->if_status check in find_router()
Every time that find_router() is invoked, if_status has to be compared with
IF_ACTIVE. Moving this comparison inside find_router() will avoid to write it
each time.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/unicast.c')
-rw-r--r-- | net/batman-adv/unicast.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c index 19c3daf34ac6..bab6076c4334 100644 --- a/net/batman-adv/unicast.c +++ b/net/batman-adv/unicast.c | |||
@@ -314,9 +314,6 @@ find_router: | |||
314 | if (!neigh_node) | 314 | if (!neigh_node) |
315 | goto out; | 315 | goto out; |
316 | 316 | ||
317 | if (neigh_node->if_incoming->if_status != IF_ACTIVE) | ||
318 | goto out; | ||
319 | |||
320 | if (my_skb_head_push(skb, sizeof(struct unicast_packet)) < 0) | 317 | if (my_skb_head_push(skb, sizeof(struct unicast_packet)) < 0) |
321 | goto out; | 318 | goto out; |
322 | 319 | ||