From: Roel Kluin <roel.kluin@xxxxxxxxx> The removed part always evaluates to false. Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx> Cc: Felipe Balbi <felipe.balbi@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx> Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/usb/musb/musb_gadget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/usb/musb/musb_gadget.c~musb-test-always-evaluates-to-false drivers/usb/musb/musb_gadget.c --- a/drivers/usb/musb/musb_gadget.c~musb-test-always-evaluates-to-false +++ a/drivers/usb/musb/musb_gadget.c @@ -1710,8 +1710,7 @@ int usb_gadget_register_driver(struct us 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; } _ -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html