Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321489
b: refs/heads/master
c: caa0bf6
h: refs/heads/master
i:
  321487: c41ac73
v: v3
  • Loading branch information
Marek Lindner authored and David S. Miller committed Aug 6, 2012
1 parent 1624bb7 commit 85badc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25099335944a23db75d4916644122c746684e093
refs/heads/master: caa0bf648cd20a2efbb6558531711e9ce2c6e948
6 changes: 3 additions & 3 deletions trunk/net/batman-adv/gateway_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ void batadv_gw_election(struct batadv_priv *bat_priv)
if (atomic_read(&bat_priv->gw_mode) != BATADV_GW_MODE_CLIENT)
goto out;

if (!batadv_atomic_dec_not_zero(&bat_priv->gw_reselect))
goto out;

curr_gw = batadv_gw_get_selected_gw_node(bat_priv);

if (!batadv_atomic_dec_not_zero(&bat_priv->gw_reselect) && curr_gw)
goto out;

next_gw = batadv_gw_get_best_gw_node(bat_priv);

if (curr_gw == next_gw)
Expand Down

0 comments on commit 85badc2

Please sign in to comment.