diff options
Diffstat (limited to 'sys/netgraph/ng_base.c')
-rw-r--r-- | sys/netgraph/ng_base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index ac2568e..fa863db 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -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 */ |