tree 5761421b50e94b6df9dd1353b03f472b489826e5
parent 3e192beaf5ef260a31e84a12c0a04eff2eec02ab
author Thomas Graf <[EMAIL PROTECTED]> Sun, 21 Aug 2005 07:27:09 -0700
committer David S. Miller <[EMAIL PROTECTED]> Tue, 30 Aug 2005 06:03:06 -0700

[IPV4]: Remove some dead code from ip_forward()

Signed-off-by: Thomas Graf <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 net/ipv4/ip_forward.c |    6 +-----
 1 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c
--- 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to