mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-04 05:05:55 +07:00
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>
This commit is contained in:
parent
1a98489731
commit
2ef04f4752
@ -695,7 +695,7 @@ bool gw_out_of_range(struct bat_priv *bat_priv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
neigh_old = find_router(bat_priv, orig_dst_node, NULL);
|
neigh_old = find_router(bat_priv, orig_dst_node, NULL);
|
||||||
if (!!neigh_old)
|
if (!neigh_old)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (curr_tq_avg - neigh_old->tq_avg > GW_THRESHOLD)
|
if (curr_tq_avg - neigh_old->tq_avg > GW_THRESHOLD)
|
||||||
|
Loading…
Reference in New Issue
Block a user