diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 22:17:35 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 17:53:48 -0400 |
commit | 8319aeb1dad46c4b6d35ea16a5697ff8160dd4d1 (patch) | |
tree | dca6d03512e98c730cd7b6851d039e31d4cef84e /common/usb_kbd.c | |
parent | 4052734273668e5f8fbe6ae8c85dd043514a38eb (diff) | |
download | u-boot-8319aeb1dad46c4b6d35ea16a5697ff8160dd4d1.tar.gz |
usb: squash lines for immediate return
This makes functions much simpler.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'common/usb_kbd.c')
-rw-r--r-- | common/usb_kbd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 97f79f8eb8..a9872a6b5a 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -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) |