batman-adv: remove extra negation in gw_out_of_range()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Nov 2011 06:09:09 +0000 (09:09 +0300)
committerMarek Lindner <lindner_marek@yahoo.de>
Tue, 6 Dec 2011 18:45:59 +0000 (02:45 +0800)
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>
net/batman-adv/gateway_client.c

index 9373a143c6d4e15b678666b5b476debfb466a612..24403a7350f75fb5767e8855041c31b8d166fea9 100644 (file)
@@ -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)