Skip to content

Commit d2d0ae7

Browse files
jhovoldvinodkoul
authored andcommitted
phy: phy-snps-eusb2: drop unnecessary loop index declarations
There is already a loop index variable declared at function scope so drop the unnecessary overloaded loop declarations. Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent f21b9be commit d2d0ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/phy/phy-snps-eusb2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
552552
if (!phy->clks)
553553
return -ENOMEM;
554554

555-
for (int i = 0; i < phy->data->num_clks; ++i)
555+
for (i = 0; i < phy->data->num_clks; ++i)
556556
phy->clks[i].id = phy->data->clk_names[i];
557557

558558
ret = devm_clk_bulk_get(dev, phy->data->num_clks, phy->clks);
@@ -561,7 +561,7 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
561561
"failed to get phy clock(s)\n");
562562

563563
phy->ref_clk = NULL;
564-
for (int i = 0; i < phy->data->num_clks; ++i) {
564+
for (i = 0; i < phy->data->num_clks; ++i) {
565565
if (!strcmp(phy->clks[i].id, "ref")) {
566566
phy->ref_clk = phy->clks[i].clk;
567567
break;

0 commit comments

Comments
 (0)