Remove redundant KASSERT.

This commit is contained in:
trasz 2017-01-22 15:35:51 +00:00
parent 0a538e4423
commit 36d6369cd4

View File

@ -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;
}
}
}
}