crypto: chelsio - remove redundant assignment to variable error
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Apr 2020 22:49:47 +0000 (23:49 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Apr 2020 07:42:16 +0000 (17:42 +1000)
The variable error is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c

index c29b80d..5d3000f 100644 (file)
@@ -1757,7 +1757,7 @@ static int chcr_ahash_final(struct ahash_request *req)
        struct uld_ctx *u_ctx = ULD_CTX(h_ctx(rtfm));
        struct chcr_context *ctx = h_ctx(rtfm);
        u8 bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
-       int error = -EINVAL;
+       int error;
        unsigned int cpu;
 
        cpu = get_cpu();