remove KASSERT(nam != NULL) from ddp_send() the following code makes
the validity of it questionable. we'll investigate later whether it can be put back and the code simplified.
This commit is contained in:
parent
51a894e61c
commit
4a16f1ce0d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ddp_usrreq.c,v 1.59 2014/08/05 07:55:31 rtr Exp $ */
|
||||
/* $NetBSD: ddp_usrreq.c,v 1.60 2014/08/07 01:02:30 rtr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990,1991 Regents of The University of Michigan.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.59 2014/08/05 07:55:31 rtr Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.60 2014/08/07 01:02:30 rtr Exp $");
|
||||
|
||||
#include "opt_mbuftrace.h"
|
||||
|
||||
@ -545,7 +545,6 @@ ddp_send(struct socket *so, struct mbuf *m, struct mbuf *nam,
|
||||
|
||||
KASSERT(solocked(so));
|
||||
KASSERT(ddp != NULL);
|
||||
KASSERT(nam != NULL);
|
||||
|
||||
if (nam) {
|
||||
if (ddp->ddp_fsat.sat_port != ATADDR_ANYPORT)
|
||||
|
Loading…
Reference in New Issue
Block a user