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 | |
parent | fdb614c28487df41f7bf2c98e85f29f31885561e (diff) | |
download | op-kernel-dev-f2712fd0b4097e8385bdb75c0ebd285a057fe299.zip op-kernel-dev-f2712fd0b4097e8385bdb75c0ebd285a057fe299.tar.gz |
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')
-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 390dcb1..4ec2162 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); |