Found by Coverity:
CID
1262117 (#1 of 1): Macro compares unsigned to 0
(NO_EFFECT)unsigned_compare: This greater-than-or-equal-to-zero
comparison of an unsigned value is always true. events->nb_fd >= 0U.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ERR("Wrong arguments in compat_epoll_wait");
goto error;
}
ERR("Wrong arguments in compat_epoll_wait");
goto error;
}
- assert(events->nb_fd >= 0);
if (events->nb_fd == 0) {
errno = EINVAL;
if (events->nb_fd == 0) {
errno = EINVAL;