From: Dan Carpenter Date: Tue, 29 Nov 2011 06:09:09 +0000 (+0300) Subject: batman-adv: remove extra negation in gw_out_of_range() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ef04f4752a9687a03b16d4d908cf07ff8b96a3b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Marek Lindner --- 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)