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:
committed by
Tom Rini
parent
4052734273
commit
8319aeb1da
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user