diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-11 00:26:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-11 00:26:41 -0500 |
commit | b1667609cd9a98ce32559e06f36fca54c775a51f (patch) | |
tree | 4e3c5aa7add5c67434f3123723be0aff5fb6f9c2 /net/ipv4/route.c | |
parent | fbd52eb2bd17bd3468974aa2fdce140f0cd32fc7 (diff) |
[IPV4]: Remove bugus goto-s from ip_route_input_slow
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>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 21b12de9e653..c95b270ba350 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1813,11 +1813,6 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, | |||
1813 | goto martian_destination; | 1813 | goto martian_destination; |
1814 | 1814 | ||
1815 | err = ip_mkroute_input(skb, &res, &fl, in_dev, daddr, saddr, tos); | 1815 | err = ip_mkroute_input(skb, &res, &fl, in_dev, daddr, saddr, tos); |
1816 | if (err == -ENOBUFS) | ||
1817 | goto e_nobufs; | ||
1818 | if (err == -EINVAL) | ||
1819 | goto e_inval; | ||
1820 | |||
1821 | done: | 1816 | done: |
1822 | in_dev_put(in_dev); | 1817 | in_dev_put(in_dev); |
1823 | if (free_res) | 1818 | if (free_res) |