Re: [PATCH] crypto: cryptd - Remove unused but set variable 'tfm'

2016-10-31 Thread Herbert Xu
On Mon, Oct 31, 2016 at 03:42:43PM +0100, Tobias Klauser wrote:
> 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 

Patch applied.  Thanks.
-- 
Email: Herbert Xu 
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] crypto: cryptd - Remove unused but set variable 'tfm'

2016-10-31 Thread Tobias Klauser
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 
---
 crypto/cryptd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index 0c654e59f215..3fd2a20a8145 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:
-- 
2.9.0


--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html