Remove redundant KASSERT.
This commit is contained in:
parent
c6646787ab
commit
5c93966020
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312623
@ -443,15 +443,11 @@ racct_sub_racct(struct racct *dest, const struct racct *src)
|
||||
}
|
||||
if (RACCT_CAN_DROP(i)) {
|
||||
dest->r_resources[i] -= src->r_resources[i];
|
||||
if (dest->r_resources[i] < 0) {
|
||||
KASSERT(RACCT_IS_SLOPPY(i) ||
|
||||
RACCT_IS_DECAYING(i),
|
||||
("%s: resource %d usage < 0", __func__, i));
|
||||
if (dest->r_resources[i] < 0)
|
||||
dest->r_resources[i] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
racct_create(struct racct **racctp)
|
||||
|
Loading…
Reference in New Issue
Block a user