Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Dmitry Eremin-Solenikov
4fa99230 1b5e1c6e

-2
-2
drivers/power/isp1704_charger.c
··· 444 444 ret = PTR_ERR(isp->phy); 445 445 goto fail0; 446 446 } 447 - if (!isp->phy) 448 - goto fail0; 449 447 450 448 isp->dev = &pdev->dev; 451 449 platform_set_drvdata(pdev, isp);