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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
952eca0a95
commit
0cdfb819b6
@@ -342,7 +342,7 @@ static ssize_t wdm_write
|
|||||||
goto outnp;
|
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,
|
r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE,
|
||||||
&desc->flags));
|
&desc->flags));
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user