phy: cadence: sierra: Remove variable that is not assigned to
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 18 Aug 2025 10:44:28 +0000 (11:44 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 18 Aug 2025 13:47:58 +0000 (15:47 +0200)
commit783ea37c7b52ae088e8c64581fbe412b5dc9a878
tree286f18e858f1548742e8414493a25bf6d39b2838
parent5deb50f749659746233e08060b457c9cf9986f9c
phy: cadence: sierra: Remove variable that is not assigned to

In cdns_sierra_pll_bind_of_clocks the variable 'i' is declared but never
assigned to before its value is used in a dev_err. Replace clk_names[i]
by the name passed to device_bind(), i.e., "pll_mux_clk". With that, the
clk_names[] array is unused and can therefore be removed.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
[jf: update description]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
drivers/phy/cadence/phy-cadence-sierra.c