projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
952eca0
)
USB: cdc-wdm: fix misuse of logical operation in place of bitop
author
David Sterba
<dsterba@suse.cz>
Mon, 27 Dec 2010 17:49:58 +0000
(18:49 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sun, 23 Jan 2011 02:32:55 +0000
(18:32 -0800)
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>
drivers/usb/class/cdc-wdm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/cdc-wdm.c
b/drivers/usb/class/cdc-wdm.c
index
6ee4451
..
47085e5
100644
(file)
--- 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