aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-02-02 17:47:17 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 17:54:54 -0500
commit08e6c972da616d057b63fd3f89ce0eb539952f06 (patch)
treead29dcf8f6dcef37c6de50d419d01e0abe5d5bf1 /drivers/usb
parentdb8516f61b481e82cec398474ed716d926de7f94 (diff)
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_gadget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 41de3a903152..a9f288cd70ed 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1710,8 +1710,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
1710 return -EINVAL; 1710 return -EINVAL;
1711 1711
1712 /* driver must be initialized to support peripheral mode */ 1712 /* driver must be initialized to support peripheral mode */
1713 if (!musb || !(musb->board_mode == MUSB_OTG 1713 if (!musb) {
1714 || musb->board_mode != MUSB_OTG)) {
1715 DBG(1, "%s, no dev??\n", __func__); 1714 DBG(1, "%s, no dev??\n", __func__);
1716 return -ENODEV; 1715 return -ENODEV;
1717 } 1716 }