提交 a9c5d8fe 编写于 作者: S Saurabh Karajgaonkar 提交者: Greg Kroah-Hartman

usb: phy: phy-keystone: Simplify return statement

Replace redundant variable use in return statement.
Signed-off-by: NSaurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 082155ea
......@@ -96,11 +96,7 @@ static int keystone_usbphy_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, k_phy);
ret = usb_add_phy_dev(&k_phy->usb_phy_gen.phy);
if (ret)
return ret;
return 0;
return usb_add_phy_dev(&k_phy->usb_phy_gen.phy);
}
static int keystone_usbphy_remove(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册