aboutsummaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-01-02 15:19:24 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-01-02 15:19:24 +0000
commit360fb9f83ad2d441e7772f28e7b9fa0bcbd22460 (patch)
tree45da5300a0535197ab5284b02af5bc427bd1b9d1 /sys/netipx
parent43ae56438eb79e7fc55c5be847999a6556f041f9 (diff)
Notes
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_usrreq.c3
-rw-r--r--sys/netipx/spx_usrreq.c5
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)