Skip to contentSkip to conversation

phy: qcom-qmp: Initialize another pointer to NULL

PATCH Applied Stephen Boyd 2 participants 2 messages Oct 26, 2020 – Oct 28, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: qcom-qmp: Initialize another pointer to NULL

This probe function is too complicated and should be refactored. For now let's just set this variable to NULL and keep the static analysis tools happy.

Fixes 52e013d0bffa ("phy: qcom-qmp: Add support for DP in USB3+DP combo phy")
---
 drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/qualcomm/phy-qcom-qmp.c +1 -1
index 5d33ad4d06f2..0cda16846962 100644
@@ -3926,7 +3926,7 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev)
 	struct phy_provider *phy_provider;
 	void __iomem *serdes;
 	void __iomem *usb_serdes;
-	void __iomem *dp_serdes;
+	void __iomem *dp_serdes = NULL;
 	const struct qmp_phy_combo_cfg *combo_cfg = NULL;
 	const struct qmp_phy_cfg *cfg = NULL;
 	const struct qmp_phy_cfg *usb_cfg = NULL;
Signature · 1 line
Sent by a computer, using git, on the internet
maintainer Applied
#1 lore raw
Quoted 3 lines · Stephen Boyd

This probe function is too complicated and should be refactored. For now let's just set this variable to NULL and keep the static analysis tools happy.

Applied, thanks

Signature · 1 line
~Vinod