summaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-wdm.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2010-12-27 18:49:58 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-22 18:32:55 -0800
commit0cdfb819b6a97e79c7a0aa0c471cd7000367103b (patch)
tree2e2044d2fa36bc29d1ad3a5b58430b932923b6d3 /drivers/usb/class/cdc-wdm.c
parent952eca0a95e27660f7a56a7186b9bd09d791ced4 (diff)
downloadlinux-0cdfb819b6a97e79c7a0aa0c471cd7000367103b.tar.bz2
USB: cdc-wdm: fix misuse of logical operation in place of bitop
CC: Greg Kroah-Hartman <gregkh@suse.de> CC: Oliver Neukum <oliver@neukum.org> CC: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class/cdc-wdm.c')
-rw-r--r--drivers/usb/class/cdc-wdm.c2
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