Garbage collect unused ipx_abort().
Spell NULL right in a KASSERT() panic message. MFC after: 1 week
This commit is contained in:
parent
cdca9c06d9
commit
62f6bcfbef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139623
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user