Commit 08e6c972 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

USB: musb: test always evaluates to false

The removed part always evaluates to false.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent db8516f6
...@@ -1710,8 +1710,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver) ...@@ -1710,8 +1710,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
return -EINVAL; return -EINVAL;
/* driver must be initialized to support peripheral mode */ /* driver must be initialized to support peripheral mode */
if (!musb || !(musb->board_mode == MUSB_OTG if (!musb) {
|| musb->board_mode != MUSB_OTG)) {
DBG(1, "%s, no dev??\n", __func__); DBG(1, "%s, no dev??\n", __func__);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment