aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6/netfilter/ip6t_HL.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@gmx.de>2007-02-07 15:06:43 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-08 12:39:11 -0800
commit2822b0d92675cd8d4fc73112334f4b113ba7c979 (patch)
treeb4167e7664415b8c9331479eb7c3d65c25821156 /net/ipv6/netfilter/ip6t_HL.c
parenta09113c2c8ec59a5cc228efa5869aade2b8f13f7 (diff)
[NETFILTER]: Remove useless comparisons before assignments
Remove unnecessary if() constructs before assignment. Signed-off-by: Jan Engelhardt <jengelh@gmx.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6t_HL.c')
-rw-r--r--net/ipv6/netfilter/ip6t_HL.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6t_HL.c b/net/ipv6/netfilter/ip6t_HL.c
index 435750f664d..7e5d51386f5 100644
--- a/net/ipv6/netfilter/ip6t_HL.c
+++ b/net/ipv6/netfilter/ip6t_HL.c
@@ -52,8 +52,7 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb,
break;
}
- if (new_hl != ip6h->hop_limit)
- ip6h->hop_limit = new_hl;
+ ip6h->hop_limit = new_hl;
return IP6T_CONTINUE;
}