summaryrefslogtreecommitdiffstats
path: root/sys/netiso/tp_subr.c
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2001-05-16 12:48:31 +0000
committerho <ho@openbsd.org>2001-05-16 12:48:31 +0000
commitd424e204e60bfd7ffd01a57d3983f326a20fef28 (patch)
tree49e17bdb4138ce9da9ed97cdb6b57b088efe1497 /sys/netiso/tp_subr.c
parentdocument SMALL_KERNEL. (diff)
downloadwireguard-openbsd-d424e204e60bfd7ffd01a57d3983f326a20fef28.tar.xz
wireguard-openbsd-d424e204e60bfd7ffd01a57d3983f326a20fef28.zip
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/netiso/tp_subr.c')
-rw-r--r--sys/netiso/tp_subr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/netiso/tp_subr.c b/sys/netiso/tp_subr.c
index 602b452fc84..73bcff21107 100644
--- a/sys/netiso/tp_subr.c
+++ b/sys/netiso/tp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_subr.c,v 1.3 1996/04/21 22:29:57 deraadt Exp $ */
+/* $OpenBSD: tp_subr.c,v 1.4 2001/05/16 12:54:07 ho Exp $ */
/* $NetBSD: tp_subr.c,v 1.8 1996/03/16 23:14:00 christos Exp $ */
/*-
@@ -721,10 +721,9 @@ tp_packetize(tpcb, m, eotsdu)
while (m) {
n = m;
- if (totlen > maxsize) {
- if ((m = m_split(n, maxsize, M_WAIT)) == 0)
- panic("tp_packetize");
- } else
+ if (totlen > maxsize)
+ m = m_split(n, maxsize, M_WAIT);
+ else
m = 0;
totlen -= maxsize;
tpsbcheck(tpcb, 5);