mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user