The acl_cnt field is unsigned; no point in checking if it's >= 0.

Found with:	Coverity Prevent
CID:		3683
This commit is contained in:
Edward Tomasz Napierala 2010-06-03 13:41:55 +00:00
parent a7d366e958
commit c977cdf961

View File

@ -342,7 +342,6 @@ acl_nfs4_sync_acl_from_mode(struct acl *aclp, mode_t mode, int file_owner_id)
const int WRITE = 02;
const int EXEC = 01;
KASSERT(aclp->acl_cnt >= 0, ("aclp->acl_cnt >= 0"));
KASSERT(aclp->acl_cnt <= ACL_MAX_ENTRIES,
("aclp->acl_cnt <= ACL_MAX_ENTRIES"));