diff options
author | julian <julian@FreeBSD.org> | 2004-06-25 21:11:14 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-06-25 21:11:14 +0000 |
commit | cf606d5f29ba03ae7d84a2c5e7458dbfb7db2d36 (patch) | |
tree | 64aaf07e387c6e0f8cc1eae22b2a1376c18d7014 /sys/netgraph/ng_iface.c | |
parent | 2cf7db632c6326199a2eec3a4d6b3ee8f4acac92 (diff) | |
download | FreeBSD-src-cf606d5f29ba03ae7d84a2c5e7458dbfb7db2d36.zip FreeBSD-src-cf606d5f29ba03ae7d84a2c5e7458dbfb7db2d36.tar.gz |
Make the frameworkl responsible for not passing the nodes a NULL mbuf pointer.
this allows the nodes to not test for this..
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Diffstat (limited to 'sys/netgraph/ng_iface.c')
-rw-r--r-- | sys/netgraph/ng_iface.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netgraph/ng_iface.c b/sys/netgraph/ng_iface.c index 078c235..c25477a 100644 --- a/sys/netgraph/ng_iface.c +++ b/sys/netgraph/ng_iface.c @@ -746,8 +746,6 @@ ng_iface_rcvdata(hook_p hook, item_p item) /* Sanity checks */ KASSERT(iffam != NULL, ("%s: iffam", __func__)); M_ASSERTPKTHDR(m); - if (m == NULL) - return (EINVAL); if ((ifp->if_flags & IFF_UP) == 0) { NG_FREE_M(m); return (ENETDOWN); |