diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-12-26 01:31:18 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-26 01:31:18 -0800 |
commit | f2712fd0b4097e8385bdb75c0ebd285a057fe299 (patch) | |
tree | f2e1a1b4d5e7f9e9103c714893b0fd792e20c54b /net/ipv4/xfrm4_input.c | |
parent | fdb614c28487df41f7bf2c98e85f29f31885561e (diff) | |
download | linux-stable-f2712fd0b4097e8385bdb75c0ebd285a057fe299.tar.gz linux-stable-f2712fd0b4097e8385bdb75c0ebd285a057fe299.tar.bz2 linux-stable-f2712fd0b4097e8385bdb75c0ebd285a057fe299.zip |
ipsec: Remove useless ret variable
This patch removes a useless ret variable from the IPv4 ESP/UDP
decapsulation code.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_input.c')
-rw-r--r-- | net/ipv4/xfrm4_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/xfrm4_input.c b/net/ipv4/xfrm4_input.c index 390dcb1354a5..4ec2162a437e 100644 --- a/net/ipv4/xfrm4_input.c +++ b/net/ipv4/xfrm4_input.c @@ -78,7 +78,6 @@ int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb) struct udphdr *uh; struct iphdr *iph; int iphlen, len; - int ret; __u8 *udpdata; __be32 *udpdata32; @@ -152,8 +151,7 @@ int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb) skb_reset_transport_header(skb); /* process ESP */ - ret = xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); - return ret; + return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); drop: kfree_skb(skb); |