forked from luck/tmp_suning_uos_patched
USB: musb: test always evaluates to false
The removed part always evaluates to false. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Felipe Balbi <felipe.balbi@nokia.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
db8516f61b
commit
08e6c972da
@ -1710,8 +1710,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
|
||||
return -EINVAL;
|
||||
|
||||
/* driver must be initialized to support peripheral mode */
|
||||
if (!musb || !(musb->board_mode == MUSB_OTG
|
||||
|| musb->board_mode != MUSB_OTG)) {
|
||||
if (!musb) {
|
||||
DBG(1, "%s, no dev??\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user