diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-08-21 19:48:51 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-08-21 19:48:51 +0000 |
| commit | 03b25f5ddc2d9788728c3d3732f38809eb10d9bb (patch) | |
| tree | eaf86e5b4aa6b350da2fa2c8883d791c806d672d /sys/netgraph | |
| parent | 1ec75877dc7bad4bec4be7248449bda10eb2ab32 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph')
| -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 ac2568e7fd67..fa863db76831 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 */ |
