In ng_callout() assert that supplied arguments are non-NULL.

This commit is contained in:
Gleb Smirnoff 2005-08-21 19:48:51 +00:00
parent 1ec75877dc
commit 03b25f5ddc

View File

@ -3558,9 +3558,10 @@ ng_uncallout(struct callout *c, node_p node)
{
item_p item;
int rval;
if (c == NULL)
return (0);
KASSERT(c != NULL, ("ng_uncallout: NULL callout"));
KASSERT(node != NULL, ("ng_uncallout: NULL node"));
rval = callout_stop(c);
item = c->c_arg;
/* Do an extra check */