USB: musb: test always evaluates to false
authorRoel Kluin <[email protected]>
Tue, 2 Feb 2010 22:47:17 +0000 (14:47 -0800)
committerGreg Kroah-Hartman <[email protected]>
Tue, 2 Mar 2010 22:54:54 +0000 (14:54 -0800)
The removed part always evaluates to false.

Signed-off-by: Roel Kluin <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Acked-by: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
drivers/usb/musb/musb_gadget.c

index 41de3a9031522fe39733ad070e3e1372a2e4551f..a9f288cd70ed2817ce36fceb4a006888e79e5233 100644 (file)
@@ -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;
        }