]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: cryptd - Remove unused but set variable 'tfm'
authorTobias Klauser <tklauser@distanz.ch>
Mon, 31 Oct 2016 14:42:43 +0000 (15:42 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Nov 2016 00:37:17 +0000 (08:37 +0800)
Remove the unused but set variable tfm in cryptd_enqueue_request to fix
the following warning when building with 'W=1':

crypto/cryptd.c:125:21: warning: variable 'tfm' set but not used [-Wunused-but-set-variable]

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c

index 0c654e59f2157bc13e387a3ebfdcdc8b07b8170a..3fd2a20a8145726094bdc6ac11c3c2dc84ecb324 100644 (file)
@@ -122,7 +122,6 @@ static int cryptd_enqueue_request(struct cryptd_queue *queue,
 {
        int cpu, err;
        struct cryptd_cpu_queue *cpu_queue;
-       struct crypto_tfm *tfm;
        atomic_t *refcnt;
        bool may_backlog;
 
@@ -141,7 +140,6 @@ static int cryptd_enqueue_request(struct cryptd_queue *queue,
        if (!atomic_read(refcnt))
                goto out_put_cpu;
 
-       tfm = request->tfm;
        atomic_inc(refcnt);
 
 out_put_cpu: