summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-31 15:42:43 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-01 08:37:17 +0800
commit01302ad1baeba5d0a846ceea5be968a8a900fdda (patch)
tree5632b440e96a3ce367a088226cb2d6dd62e00cd7 /crypto
parentbb98368a8fb13c0ddbfcd29a6b09d33135aed1c0 (diff)
downloadlinux-crypto-01302ad1baeba5d0a846ceea5be968a8a900fdda.tar.gz
linux-crypto-01302ad1baeba5d0a846ceea5be968a8a900fdda.zip
crypto: cryptd - Remove unused but set variable 'tfm'
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/cryptd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index 0c654e59..3fd2a20a 100644
--- a/crypto/cryptd.c
+++ b/crypto/cryptd.c
@@ -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: