From: Roel Kluin Date: Tue, 2 Feb 2010 22:47:17 +0000 (-0800) Subject: USB: musb: test always evaluates to false X-Git-Tag: v2.6.34-rc1~215^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08e6c972da616d057b63fd3f89ce0eb539952f06;p=platform%2Fkernel%2Flinux-3.10.git USB: musb: test always evaluates to false The removed part always evaluates to false. Signed-off-by: Roel Kluin Cc: Felipe Balbi Cc: Greg Kroah-Hartman Acked-by: David Brownell Signed-off-by: Andrew Morton --- diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 41de3a9..a9f288c 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) 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; }