Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <johan+linaro@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20250523084839.11015-7-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
d2d0ae72 f21b9bea

+2 -2
+2 -2
drivers/phy/phy-snps-eusb2.c
··· 552 552 if (!phy->clks) 553 553 return -ENOMEM; 554 554 555 - for (int i = 0; i < phy->data->num_clks; ++i) 555 + for (i = 0; i < phy->data->num_clks; ++i) 556 556 phy->clks[i].id = phy->data->clk_names[i]; 557 557 558 558 ret = devm_clk_bulk_get(dev, phy->data->num_clks, phy->clks); ··· 561 561 "failed to get phy clock(s)\n"); 562 562 563 563 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) { 565 565 if (!strcmp(phy->clks[i].id, "ref")) { 566 566 phy->ref_clk = phy->clks[i].clk; 567 567 break;