mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 12:26:54 +07:00
isp1704_charger: remove useless check in isp1704_charger_probe()
Neither devm_usb_get_phy_by_phandle() nor devm_usb_get_phy() can return a NULL result, so remove the useless !isp->phy check. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
This commit is contained in:
parent
1b5e1c6e6e
commit
4fa99230ea
@ -444,8 +444,6 @@ static int isp1704_charger_probe(struct platform_device *pdev)
|
||||
ret = PTR_ERR(isp->phy);
|
||||
goto fail0;
|
||||
}
|
||||
if (!isp->phy)
|
||||
goto fail0;
|
||||
|
||||
isp->dev = &pdev->dev;
|
||||
platform_set_drvdata(pdev, isp);
|
||||
|
Loading…
Reference in New Issue
Block a user