fs_poll: Fix wrong return value in CONFIG_BUILD_KERNEL
The exit condition below does not work: if (ret < 0) { set_errno(-ret); return ERROR; } else { return count; }
This commit is contained in:
parent
84c7a4dd69
commit
e0f4a76d6c
@ -393,7 +393,7 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout)
|
||||
{
|
||||
/* Out of memory */
|
||||
|
||||
ret = ENOMEM;
|
||||
ret = -ENOMEM;
|
||||
goto out_with_cancelpt;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user