[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B4871DD.5070505@gmail.com>
Date: Sat, 09 Jan 2010 13:09:01 +0100
From: Roel Kluin <roel.kluin@...il.com>
To: Felipe Balbi <felipe.balbi@...ia.com>, linux-usb@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] musb: Test always evaluates to false
The removed part always evaluates to false.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
drivers/usb/musb/musb_gadget.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Was a different test intended?
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index cbcf14a..1a19203 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1697,8 +1697,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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists