crypto: bcm - Delete redundant variable definition
authorTang Bin <tangbin@cmss.chinamobile.com>
Sun, 19 Apr 2020 07:12:45 +0000 (15:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Apr 2020 07:42:17 +0000 (17:42 +1000)
The variable "i" is redundant to be assigned a value
of zero,because it's assigned in the for loop, so remove
redundant one here.

Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c

index c8b9408..5db23c1 100644 (file)
@@ -4724,7 +4724,6 @@ static int spu_dt_read(struct platform_device *pdev)
        spu->spu_type = matched_spu_type->type;
        spu->spu_subtype = matched_spu_type->subtype;
 
-       i = 0;
        for (i = 0; (i < MAX_SPUS) && ((spu_ctrl_regs =
                platform_get_resource(pdev, IORESOURCE_MEM, i)) != NULL); i++) {