phy: rockchip: inno-usb3: Fix missing error code in rockchip_u3phy_probe()

The error code is missing in this code scenario, add the error code
'PTR_ERR(provider)' to the return value ret.

Eliminate the follow smatch warning:

drivers/phy/rockchip/phy-rockchip-inno-usb3.c:937 rockchip_u3phy_probe() warn: missing error code 'ret'

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If534350cdae1ee09b210c0d475aa2b8673dc7c64
This commit is contained in:
William Wu
2022-06-06 15:11:04 +08:00
committed by Tao Huang
parent b8ff8b1d30
commit 6d7e14aaab

View File

@@ -933,8 +933,10 @@ static int rockchip_u3phy_probe(struct platform_device *pdev)
}
provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
if (IS_ERR_OR_NULL(provider))
if (IS_ERR(provider)) {
ret = PTR_ERR(provider);
goto put_child;
}
rockchip_u3phy_rest_deassert(u3phy, U3PHY_MAC_RST);
rockchip_u3phy_clk_disable(u3phy);