[PATCH] USB: cdc-wdm: fix misuse of logical operation in place of bitop

From: David Sterba
Date: Mon Dec 27 2010 - 12:50:21 EST


CC: Greg Kroah-Hartman <gregkh@xxxxxxx>
CC: Oliver Neukum <oliver@xxxxxxxxxx>
CC: Marcel Holtmann <marcel@xxxxxxxxxxxx>
Signed-off-by: David Sterba <dsterba@xxxxxxx>
---
drivers/usb/class/cdc-wdm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index 6ee4451..47085e5 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -342,7 +342,7 @@ static ssize_t wdm_write
goto outnp;
}

- if (!file->f_flags && O_NONBLOCK)
+ if (!(file->f_flags & O_NONBLOCK))
r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE,
&desc->flags));
else
--
1.7.3.4.626.g73e7b

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/