1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 16:22:36 +02:00

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

@@ -605,11 +605,8 @@ int usb_kbd_deregister(int force)
static int usb_kbd_probe(struct udevice *dev)
{
struct usb_device *udev = dev_get_parent_priv(dev);
int ret;
ret = probe_usb_keyboard(udev);
return ret;
return probe_usb_keyboard(udev);
}
static int usb_kbd_remove(struct udevice *dev)