]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ipv6: remove unused variables in esp6
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 19 May 2017 16:55:56 +0000 (09:55 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 22 May 2017 06:37:18 +0000 (08:37 +0200)
Resolves warnings:
net/ipv6/esp6.c: In function ‘esp_ssg_unref’:
net/ipv6/esp6.c:121:10: warning: variable ‘seqhi’ set but not used [-Wunused-but-set-variable]
net/ipv6/esp6.c: In function ‘esp6_output_head’:
net/ipv6/esp6.c:227:21: warning: variable ‘esph’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/esp6.c

index 1fe99ba8066c8de2a5717f0b611a152c94837734..53b6b870b93535981e089ea37e2b55c3cf8af10f 100644 (file)
@@ -118,7 +118,6 @@ static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead,
 
 static void esp_ssg_unref(struct xfrm_state *x, void *tmp)
 {
-       __be32 *seqhi;
        struct crypto_aead *aead = x->data;
        int seqhilen = 0;
        u8 *iv;
@@ -128,7 +127,6 @@ static void esp_ssg_unref(struct xfrm_state *x, void *tmp)
        if (x->props.flags & XFRM_STATE_ESN)
                seqhilen += sizeof(__be32);
 
-       seqhi = esp_tmp_seqhi(tmp);
        iv = esp_tmp_iv(aead, tmp, seqhilen);
        req = esp_tmp_req(aead, iv);
 
@@ -224,12 +222,9 @@ int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info
        u8 *vaddr;
        int nfrags;
        struct page *page;
-       struct ip_esp_hdr *esph;
        struct sk_buff *trailer;
        int tailen = esp->tailen;
 
-       esph = ip_esp_hdr(skb);
-
        if (!skb_cloned(skb)) {
                if (tailen <= skb_availroom(skb)) {
                        nfrags = 1;