Remove redundant KASSERT.
This commit is contained in:
parent
0a538e4423
commit
36d6369cd4
@ -443,12 +443,8 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user