mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 11:28:22 +08:00
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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user