Skip to contentSkip to conversation

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

PATCH New David Sterba 1 participant 1 message Dec 27, 2010 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]>
---
 drivers/usb/class/cdc-wdm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/class/cdc-wdm.c +1 -1
index 6ee4451..47085e5 100644
@@ -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
Signature · 1 line
1.7.3.4.626.g73e7b