summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r--lib/libc/posix1e/acl_entry.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c
index 86ec290..3f8ca62 100644
--- a/lib/libc/posix1e/acl_entry.c
+++ b/lib/libc/posix1e/acl_entry.c
@@ -55,8 +55,7 @@ acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p)
* +1, because we are checking if there is space left for one more
* entry.
*/
- if ((acl_int->acl_cnt + 1 >= ACL_MAX_ENTRIES) ||
- (acl_int->acl_cnt < 0)) {
+ if (acl_int->acl_cnt + 1 >= ACL_MAX_ENTRIES) {
errno = EINVAL;
return (-1);
}
OpenPOWER on IntegriCloud