summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/marvell
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-30 22:53:25 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2022-02-05 15:27:10 +1100
commitc717993dd76a1049093af5c262e751d901b8da10 (patch)
treed3a419dd60c94d92288f3fff2aa89728c846daf9 /drivers/crypto/marvell
parent2d841af23ae8f398c85dd1ff2dc24b5ec8ba4569 (diff)
downloadlinux-c717993dd76a1049093af5c262e751d901b8da10.tar.gz
linux-c717993dd76a1049093af5c262e751d901b8da10.tar.bz2
linux-c717993dd76a1049093af5c262e751d901b8da10.zip
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 <colin.i.king@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
-rw-r--r--drivers/crypto/marvell/octeontx/otx_cptvf_main.c1
1 files changed, 0 insertions, 1 deletions
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;