diff options
author | David Sterba <[email protected]> | 2010-12-27 18:49:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2011-01-22 18:32:55 -0800 |
commit | 0cdfb819b6a97e79c7a0aa0c471cd7000367103b (patch) | |
tree | 2e2044d2fa36bc29d1ad3a5b58430b932923b6d3 | |
parent | 952eca0a95e27660f7a56a7186b9bd09d791ced4 (diff) |
USB: cdc-wdm: fix misuse of logical operation in place of bitop
CC: Greg Kroah-Hartman <[email protected]>
CC: Oliver Neukum <[email protected]>
CC: Marcel Holtmann <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | 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 6ee4451bfe2d..47085e5879ab 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 |