diff options
author | Thomas Graf <tgraf@suug.ch> | 2005-08-21 04:27:09 +0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-30 03:03:06 +0400 |
commit | 9070683bdac59a3b26e2ce6dd0d05fbfcb3fc7d8 (patch) | |
tree | 5761421b50e94b6df9dd1353b03f472b489826e5 /net/ipv4 | |
parent | 3e192beaf5ef260a31e84a12c0a04eff2eec02ab (diff) | |
download | linux-9070683bdac59a3b26e2ce6dd0d05fbfcb3fc7d8.tar.xz |
[IPV4]: Remove some dead code from ip_forward()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_forward.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 77094aac6c28..0923add122b4 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c @@ -76,16 +76,12 @@ int ip_forward(struct sk_buff *skb) * that reaches zero, we must reply an ICMP control message telling * that the packet's lifetime expired. */ - - iph = skb->nh.iph; - - if (iph->ttl <= 1) + if (skb->nh.iph->ttl <= 1) goto too_many_hops; if (!xfrm4_route_forward(skb)) goto drop; - iph = skb->nh.iph; rt = (struct rtable*)skb->dst; if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) |