From: Tang Bin Date: Sun, 19 Apr 2020 07:12:45 +0000 (+0800) Subject: crypto: bcm - Delete redundant variable definition X-Git-Tag: v5.10.7~2354^2~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c3d6497fbfa0911d4cd6f261762a0a7af29566a;p=platform%2Fkernel%2Flinux-rpi.git crypto: bcm - Delete redundant variable definition 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 Signed-off-by: Tang Bin Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto/bcm/cipher.c index c8b9408..5db23c1 100644 --- a/drivers/crypto/bcm/cipher.c +++ b/drivers/crypto/bcm/cipher.c @@ -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++) {