summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-01-07 17:12:29 +0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2014-01-25 15:24:15 +0400
commit4fa99230eade164137d94178b12e1e5f1c3d2bdd (patch)
tree92a32ccd95d9024a98b546cb99a7286bdf59561e /drivers/power
parent1b5e1c6e6e728774ba7a1e8286d4833e4a16e918 (diff)
downloadlinux-4fa99230eade164137d94178b12e1e5f1c3d2bdd.tar.xz
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/isp1704_charger.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
index 80edb7d8cb54..0b4cf9d63291 100644
--- a/drivers/power/isp1704_charger.c
+++ b/drivers/power/isp1704_charger.c
@@ -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);