diff mbox series

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

Message ID 20220130225325.7819-1-colin.i.king@gmail.com
State Accepted
Commit c717993dd76a1049093af5c262e751d901b8da10
Headers show
Series crypto: marvell/octeontx: remove redundant initialization of variable c_size | expand

Commit Message

Colin Ian King Jan. 30, 2022, 10:53 p.m. UTC
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>
---
 drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Herbert Xu Feb. 5, 2022, 4:34 a.m. UTC | #1
On Sun, Jan 30, 2022 at 10:53:25PM +0000, Colin Ian King wrote:
> 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>
> ---
>  drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 1 -
>  1 file changed, 1 deletion(-)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
index b681bd2dc6ad..36d72e35ebeb 100644
--- a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
+++ b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
@@ -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;