diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netipx/ipx_usrreq.c | 3 | ||||
| -rw-r--r-- | sys/netipx/spx_usrreq.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/netipx/ipx_usrreq.c b/sys/netipx/ipx_usrreq.c index 47acdb17e7fdf..db0aadd625b4e 100644 --- a/sys/netipx/ipx_usrreq.c +++ b/sys/netipx/ipx_usrreq.c @@ -128,8 +128,7 @@ ipx_input(m, ipxp) struct ifnet *ifp = m->m_pkthdr.rcvif; struct sockaddr_ipx ipx_ipx; - if (ipxp == NULL) - panic("No ipxpcb"); + KASSERT(ipxp != NULL, ("ipx_input: NUL ipxpcb")); /* * Construct sockaddr format source address. * Stuff source address and datagram in user buffer. diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c index a03541b0f6838..4aa93a3a38554 100644 --- a/sys/netipx/spx_usrreq.c +++ b/sys/netipx/spx_usrreq.c @@ -163,10 +163,7 @@ spx_input(m, ipxp) short ostate = 0; spxstat.spxs_rcvtotal++; - if (ipxp == NULL) { - panic("No ipxpcb in spx_input\n"); - return; - } + KASSERT(ipxp != NULL, ("spx_input: NULL ipxpcb")); cb = ipxtospxpcb(ipxp); if (cb == NULL) |
