diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-29 09:09:09 +0300 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-12-07 02:45:59 +0800 |
commit | 2ef04f4752a9687a03b16d4d908cf07ff8b96a3b (patch) | |
tree | e6359937ee18e1df73d1f44ef00dd97a8a225209 /net/batman-adv/gateway_client.c | |
parent | 1a98489731b0a02ed5c0f842651462050a3af001 (diff) | |
download | linux-2ef04f4752a9687a03b16d4d908cf07ff8b96a3b.tar.bz2 |
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>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/gateway_client.c')
-rw-r--r-- | net/batman-adv/gateway_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c index 9373a143c6d4..24403a7350f7 100644 --- a/net/batman-adv/gateway_client.c +++ b/net/batman-adv/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) |