]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV4]: Remove bugus goto-s from ip_route_input_slow
authorPavel Emelyanov <xemul@openvz.org>
Sun, 11 Nov 2007 05:26:41 +0000 (21:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2007 05:26:41 +0000 (21:26 -0800)
Both places look like

        if (err == XXX)
               goto yyy;
   done:

while both yyy targets look like

        err = XXX;
        goto done;

so this is ok to remove the above if-s.

yyy labels are used in other places and are not removed.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c

index 21b12de9e6536663d5da2b60bd1d94b1d984acdd..c95b270ba3501698fa635ce6d8f5821fd5af5c0d 100644 (file)
@@ -1813,11 +1813,6 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr,
                goto martian_destination;
 
        err = ip_mkroute_input(skb, &res, &fl, in_dev, daddr, saddr, tos);
-       if (err == -ENOBUFS)
-               goto e_nobufs;
-       if (err == -EINVAL)
-               goto e_inval;
-
 done:
        in_dev_put(in_dev);
        if (free_res)