lkml.org 
[lkml]   [2010]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] musb: Test always evaluates to false
    The removed part always evaluates to false.

    Signed-off-by: Roel Kluin <roel.kluin@gmail.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;
    }

    \
     
     \ /
      Last update: 2010-01-09 13:07    [W:0.020 / U:2.064 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site