Skip to content

Commit

Permalink
USB: cdc-wdm: fix misuse of logical operation in place of bitop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba authored and Greg Kroah-Hartman committed Jan 23, 2011
1 parent 952eca0 commit 0cdfb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/class/cdc-wdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cdfb81

Please sign in to comment.