]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
USB: musb: test always evaluates to false
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 2 Feb 2010 22:47:17 +0000 (14:47 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:54 +0000 (14:54 -0800)
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>
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;
        }