]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipsec: Remove useless ret variable
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Dec 2008 09:31:18 +0000 (01:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 09:31:18 +0000 (01:31 -0800)
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>
net/ipv4/xfrm4_input.c

index 390dcb1354a5e4f6c76ad0c9bf8d3bc238a217ab..4ec2162a437ecc1faca91a862486e53422ab8cb2 100644 (file)
@@ -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);