mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
usb: phy: phy-mxs-usb: Simplify return statement
Replace redundant variable use in return statement. Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
3f217e9e96
commit
4b68b50fd4
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue