1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00

ramips: whitespace cleanup inside hnat driver

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin 2019-01-07 15:45:51 +01:00
parent 6b9bdbd493
commit 93c35bfa21

@ -122,6 +122,7 @@ static int
mtk_check_hashcollision(struct mtk_eth *eth, u32 hash)
{
struct mtk_foe_entry entry = ((struct mtk_foe_entry *)eth->foe_table)[hash];
return (entry.bfib1.state != BIND)? 0:1;
}
@ -180,7 +181,8 @@ int mtk_flow_offload(struct mtk_eth *eth,
goto write;
}
if(mtk_check_hashcollision(eth, ohash)) // Two-way hash: when hash collision occurs, the hash value will be shifted to the next position.
/* Two-way hash: when hash collision occurs, the hash value will be shifted to the next position. */
if(mtk_check_hashcollision(eth, ohash))
ohash += 1;
if(mtk_check_hashcollision(eth, rhash))
rhash += 1;