mirror of
https://github.com/torvalds/linux
synced 2024-09-06 09:51:23 +00:00
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>
This commit is contained in:
parent
60425a8bad
commit
89277a7d0e
|
@ -122,7 +122,6 @@ static int cryptd_enqueue_request(struct cryptd_queue *queue,
|
||||||
{
|
{
|
||||||
int cpu, err;
|
int cpu, err;
|
||||||
struct cryptd_cpu_queue *cpu_queue;
|
struct cryptd_cpu_queue *cpu_queue;
|
||||||
struct crypto_tfm *tfm;
|
|
||||||
atomic_t *refcnt;
|
atomic_t *refcnt;
|
||||||
bool may_backlog;
|
bool may_backlog;
|
||||||
|
|
||||||
|
@ -141,7 +140,6 @@ static int cryptd_enqueue_request(struct cryptd_queue *queue,
|
||||||
if (!atomic_read(refcnt))
|
if (!atomic_read(refcnt))
|
||||||
goto out_put_cpu;
|
goto out_put_cpu;
|
||||||
|
|
||||||
tfm = request->tfm;
|
|
||||||
atomic_inc(refcnt);
|
atomic_inc(refcnt);
|
||||||
|
|
||||||
out_put_cpu:
|
out_put_cpu:
|
||||||
|
|
Loading…
Reference in a new issue