diff options
author | Masahiro Yamada | 2016-09-06 22:17:35 +0900 |
---|---|---|
committer | Tom Rini | 2016-09-23 17:53:48 -0400 |
commit | 8319aeb1dad46c4b6d35ea16a5697ff8160dd4d1 (patch) | |
tree | dca6d03512e98c730cd7b6851d039e31d4cef84e /drivers/usb/host/xhci-fsl.c | |
parent | 4052734273668e5f8fbe6ae8c85dd043514a38eb (diff) |
usb: squash lines for immediate return
This makes functions much simpler.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/usb/host/xhci-fsl.c')
-rw-r--r-- | drivers/usb/host/xhci-fsl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index bdcd4f1c991..6ff450cc758 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -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[] = { |