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>
This commit is contained in:
parent
fdb614c284
commit
f2712fd0b4
|
@ -78,7 +78,6 @@ int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
|
||||||
struct udphdr *uh;
|
struct udphdr *uh;
|
||||||
struct iphdr *iph;
|
struct iphdr *iph;
|
||||||
int iphlen, len;
|
int iphlen, len;
|
||||||
int ret;
|
|
||||||
|
|
||||||
__u8 *udpdata;
|
__u8 *udpdata;
|
||||||
__be32 *udpdata32;
|
__be32 *udpdata32;
|
||||||
|
@ -152,8 +151,7 @@ int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
|
||||||
skb_reset_transport_header(skb);
|
skb_reset_transport_header(skb);
|
||||||
|
|
||||||
/* process ESP */
|
/* process ESP */
|
||||||
ret = xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type);
|
return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type);
|
||||||
return ret;
|
|
||||||
|
|
||||||
drop:
|
drop:
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
|
|
Loading…
Reference in a new issue