drivers/pipes: Fix a typo error
"event & POLLOUT"(not "event | POLLOUT") should be used to check POLLOUT is set Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I09af7669a1c8ee46118b904d2c5946ecb99e6215
This commit is contained in:
parent
1241f910ce
commit
40516a3df9
@ -755,7 +755,7 @@ int pipecommon_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
|
||||
/* Change POLLOUT to POLLERR, if no readers and policy 0. */
|
||||
|
||||
if ((eventset | POLLOUT) &&
|
||||
if ((eventset & POLLOUT) &&
|
||||
PIPE_IS_POLICY_0(dev->d_flags) &&
|
||||
dev->d_nreaders <= 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user