Garbage collect unused ipx_abort().

Spell NULL right in a KASSERT() panic message.

MFC after:	1 week
This commit is contained in:
Robert Watson 2005-01-03 12:54:31 +00:00
parent cdca9c06d9
commit 62f6bcfbef
2 changed files with 2 additions and 13 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004 Robert N. M. Watson
* Copyright (c) 2004-2005 Robert N. M. Watson
* Copyright (c) 1995, Mike Mitchell
* Copyright (c) 1984, 1985, 1986, 1987, 1993
* The Regents of the University of California. All rights reserved.
@ -128,7 +128,7 @@ ipx_input(m, ipxp)
struct ifnet *ifp = m->m_pkthdr.rcvif;
struct sockaddr_ipx ipx_ipx;
KASSERT(ipxp != NULL, ("ipx_input: NUL ipxpcb"));
KASSERT(ipxp != NULL, ("ipx_input: NULL ipxpcb"));
/*
* Construct sockaddr format source address.
* Stuff source address and datagram in user buffer.
@ -163,16 +163,6 @@ ipx_input(m, ipxp)
sorwakeup(ipxp->ipxp_socket);
}
void
ipx_abort(ipxp)
struct ipxpcb *ipxp;
{
struct socket *so = ipxp->ipxp_socket;
ipx_pcbdisconnect(ipxp);
soisdisconnected(so);
}
/*
* Drop connection, reporting
* the specified error.

View File

@ -86,7 +86,6 @@ struct sockaddr;
struct socket;
struct sockopt;
void ipx_abort(struct ipxpcb *ipxp);
u_short ipx_cksum(struct mbuf *m, int len);
int ipx_control(struct socket *so, u_long cmd, caddr_t data,
struct ifnet *ifp, struct thread *td);