rlimit: plug duplicate assertion

counter sanity is already checked by refcount_release.
This commit is contained in:
Mateusz Guzik 2014-10-25 05:56:21 +00:00
parent fbb045e15e
commit 675c3507d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273629

View File

@ -1168,7 +1168,6 @@ lim_free(limp)
struct plimit *limp;
{
KASSERT(limp->pl_refcnt > 0, ("plimit refcnt underflow"));
if (refcount_release(&limp->pl_refcnt))
free((void *)limp, M_PLIMIT);
}