]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: phy: phy-mxs-usb: Simplify return statement
authorSaurabh Karajgaonkar <skarajga@visteon.com>
Tue, 4 Aug 2015 14:01:31 +0000 (14:01 +0000)
committerFelipe Balbi <balbi@ti.com>
Tue, 4 Aug 2015 16:01:50 +0000 (11:01 -0500)
Replace redundant variable use in return statement.

Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-mxs-usb.c

index 3fcc0483a0811e8f7e2984aea1c4a11ce2da0951..4d863ebc117c0f59cce46f39fda4d191e93b9843 100644 (file)
@@ -506,11 +506,7 @@ static int mxs_phy_probe(struct platform_device *pdev)
 
        device_set_wakeup_capable(&pdev->dev, true);
 
-       ret = usb_add_phy_dev(&mxs_phy->phy);
-       if (ret)
-               return ret;
-
-       return 0;
+       return usb_add_phy_dev(&mxs_phy->phy);
 }
 
 static int mxs_phy_remove(struct platform_device *pdev)