Skip to content

Commit

Permalink
ipsec: Remove useless ret variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Dec 26, 2008
1 parent fdb614c commit f2712fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/ipv4/xfrm4_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f2712fd

Please sign in to comment.