Skip to contentSkip to conversation

crypto: marvell/octeontx: remove redundant initialization of variable c_size

PATCH In review Colin Ian King 2 participants 2 messages Jan 30, 2022 – Feb 5, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/crypto/marvell/octeontx/otx_cptvf_main.c +0 -1
index b681bd2dc6ad..36d72e35ebeb 100644
@@ -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
maintainer
#1 lore raw
Quoted 8 lines · Colin Ian King

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.

---
 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