]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:29:20 +0000 (12:29 -0700)
Replace redundant variable use in return statement.

Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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)