crypto: marvell/octeontx - remove redundant initialization of variable c_size
authorColin Ian King <colin.i.king@gmail.com>
Sun, 30 Jan 2022 22:53:25 +0000 (22:53 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Feb 2022 04:27:10 +0000 (15:27 +1100)
Variable c_size is being initialized with a value that is never read, it
is being re-assigned with a different value later on. The initialization
is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx/otx_cptvf_main.c

index b681bd2..36d72e3 100644 (file)
@@ -204,7 +204,6 @@ static int alloc_command_queues(struct otx_cptvf *cptvf,
 
        /* per queue initialization */
        for (i = 0; i < cptvf->num_queues; i++) {
-               c_size = 0;
                rem_q_size = q_size;
                first = NULL;
                last = NULL;