diff options
author | trasz <trasz@FreeBSD.org> | 2010-06-03 13:41:55 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2010-06-03 13:41:55 +0000 |
commit | cbfca8b888ecc0c15fc757ccc9efc6a0c8febae6 (patch) | |
tree | fd21469d3cad80fa3f55fd847c18df6afe81e737 | |
parent | 37567a7281139ec49a06b39f8998a1849e2dc89e (diff) | |
download | FreeBSD-src-cbfca8b888ecc0c15fc757ccc9efc6a0c8febae6.zip FreeBSD-src-cbfca8b888ecc0c15fc757ccc9efc6a0c8febae6.tar.gz |
The acl_cnt field is unsigned; no point in checking if it's >= 0.
Found with: Coverity Prevent
CID: 3683
-rw-r--r-- | sys/kern/subr_acl_nfs4.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/subr_acl_nfs4.c b/sys/kern/subr_acl_nfs4.c index 1a01577..ec7ead9 100644 --- a/sys/kern/subr_acl_nfs4.c +++ b/sys/kern/subr_acl_nfs4.c @@ -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")); |