diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-01-07 21:12:29 +0800 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2014-01-25 15:24:15 +0400 |
commit | 4fa99230eade164137d94178b12e1e5f1c3d2bdd (patch) | |
tree | 92a32ccd95d9024a98b546cb99a7286bdf59561e | |
parent | 1b5e1c6e6e728774ba7a1e8286d4833e4a16e918 (diff) | |
download | linux-4fa99230eade164137d94178b12e1e5f1c3d2bdd.tar.bz2 |
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>
-rw-r--r-- | drivers/power/isp1704_charger.c | 2 |
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); |