crypto: marvell/octeontx: remove redundant initialization of variable c_size
Subsystems (3)
PATCH 1/1 crypto: marvell/octeontx: remove redundant initialization of variable c_size
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 <[email protected]>
--- drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/crypto/marvell/octeontx/otx_cptvf_main.c +0 -1
@@ -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 ;
Signature · 1 line
2.34.1
Herbert Xu
maintainerQuoted 8 lines · Colin Ian King
Variable
c_sizeis 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 <[email protected]>--- drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 1 - 1 file changed, 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt