From d243a85e998bfca7ea175a1128ac085c5cd38125 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Thu, 3 Jun 2010 14:15:08 +0000 Subject: [PATCH] The 'acl_cnt' field is unsigned; no point in checking if it's >= 0. Found with: Coverity Prevent CID: 6193 --- lib/libc/posix1e/acl_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c index 56396f97f09a..86ec29056656 100644 --- a/lib/libc/posix1e/acl_entry.c +++ b/lib/libc/posix1e/acl_entry.c @@ -87,7 +87,7 @@ acl_create_entry_np(acl_t *acl_p, acl_entry_t *entry_p, int offset) acl_int = &(*acl_p)->ats_acl; - 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); }