Skip to content

Commit

Permalink
batman-adv: remove extra negation in gw_out_of_range()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
  • Loading branch information
Dan Carpenter authored and Marek Lindner committed Dec 6, 2011
1 parent 1a98489 commit 2ef04f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/gateway_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ef04f4

Please sign in to comment.