]> git.karo-electronics.de Git - linux-beck.git/commitdiff
isp1704_charger: remove useless check in isp1704_charger_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 Jan 2014 13:12:29 +0000 (21:12 +0800)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sat, 25 Jan 2014 11:24:15 +0000 (15:24 +0400)
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>
drivers/power/isp1704_charger.c

index 80edb7d8cb547702df7b364f087f25aade3729d8..0b4cf9d63291d0e152197c0eeffb1eb128818dd3 100644 (file)
@@ -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);