The following commit has been merged in the next branch: commit 624972cf3280ed43fc2e7a991b748361d3adebad Author: Dan Carpenter dan.carpenter@oracle.com Date: Tue Nov 29 09:09:09 2011 +0300
batman-adv: remove extra negation in gw_out_of_range()
There is a typo here where an extra '!' made the check to the opposite of what was intended.
Signed-off-by: Dan Carpenter dan.carpenter@oracle.com
diff --git a/gateway_client.c b/gateway_client.c index 9373a14..24403a7 100644 --- a/gateway_client.c +++ b/gateway_client.c @@ -695,7 +695,7 @@ bool gw_out_of_range(struct bat_priv *bat_priv, }
neigh_old = find_router(bat_priv, orig_dst_node, NULL); - if (!!neigh_old) + if (!neigh_old) goto out;
if (curr_tq_avg - neigh_old->tq_avg > GW_THRESHOLD)