phy: qcom-qmp: Initialize another pointer to NULL
Subsystems (2)
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")
Reported-by kernel test robot <[email protected]>
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Stephen Boyd <[email protected]>
--- drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/qualcomm/phy-qcom-qmp.c +1 -1
@@ -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
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