Skip to content

Commit

Permalink
crypto: bcm - Delete redundant variable definition
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tang Bin <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Tang Bin authored and herbertx committed Apr 24, 2020
1 parent 97f2650 commit 9c3d649
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/crypto/bcm/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {

Expand Down

0 comments on commit 9c3d649

Please sign in to comment.