From 60de2c41ea2b387be2e4b7b9b565329dd0a61c36 Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Wed, 16 May 2001 12:54:35 +0000 Subject: No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok) --- sys/netiso/tp_usrreq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/netiso/tp_usrreq.c') diff --git a/sys/netiso/tp_usrreq.c b/sys/netiso/tp_usrreq.c index 7c6f03cec22..8b3e4caf987 100644 --- a/sys/netiso/tp_usrreq.c +++ b/sys/netiso/tp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tp_usrreq.c,v 1.3 1996/04/21 22:30:04 deraadt Exp $ */ +/* $OpenBSD: tp_usrreq.c,v 1.4 2001/05/16 12:54:07 ho Exp $ */ /* $NetBSD: tp_usrreq.c,v 1.9 1996/03/16 23:14:06 christos Exp $ */ /*- @@ -329,9 +329,6 @@ tp_sendoob(tpcb, so, xdata, outflags) if (xdata == (struct mbuf *) 0) { /* empty xpd packet */ MGETHDR(xdata, M_WAIT, MT_OOBDATA); - if (xdata == NULL) { - return ENOBUFS; - } xdata->m_len = 0; xdata->m_pkthdr.len = 0; } -- cgit v1.2.3