phy: qcom: Fix ret is uninitialised
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 6 Aug 2025 16:55:04 +0000 (17:55 +0100)
committerCasey Connolly <casey.connolly@linaro.org>
Wed, 13 Aug 2025 13:13:16 +0000 (15:13 +0200)
commitfda7bee6468ee5a701e268162aaa7645d98b85f0
tree0f6d65f0c66da9128062bcf1fea7d018a435d232
parentacfacf452441d0a659e3afbd55fd6061aa17e647
phy: qcom: Fix ret is uninitialised

In qcom_snps_eusb2_phy_probe after the call to devm_clk_get if an error
is found then ret is printed but has not been assigned to by the code.
Decode the error from the pointer and assign it to ret.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250806-phy_qcom_snps-v1-1-5cda830026c7@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
drivers/phy/qcom/phy-qcom-snps-eusb2.c