usb: squash lines for immediate return

This makes functions much simpler.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
Masahiro Yamada
2016-09-06 22:17:35 +09:00
committed by Tom Rini
parent 4052734273
commit 8319aeb1da
4 changed files with 12 additions and 29 deletions

View File

@@ -129,15 +129,10 @@ static int xhci_fsl_probe(struct udevice *dev)
static int xhci_fsl_remove(struct udevice *dev)
{
struct xhci_fsl_priv *priv = dev_get_priv(dev);
int ret;
fsl_xhci_core_exit(&priv->ctx);
ret = xhci_deregister(dev);
if (ret)
return ret;
return 0;
return xhci_deregister(dev);
}
static const struct udevice_id xhci_usb_ids[] = {