diff options
author | 2001-05-16 12:48:31 +0000 | |
---|---|---|
committer | 2001-05-16 12:48:31 +0000 | |
commit | d424e204e60bfd7ffd01a57d3983f326a20fef28 (patch) | |
tree | 49e17bdb4138ce9da9ed97cdb6b57b088efe1497 /sys/netiso/if_cons.c | |
parent | document SMALL_KERNEL. (diff) | |
download | wireguard-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/if_cons.c')
-rw-r--r-- | sys/netiso/if_cons.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netiso/if_cons.c b/sys/netiso/if_cons.c index 99af200fc70..4c7dc72fa03 100644 --- a/sys/netiso/if_cons.c +++ b/sys/netiso/if_cons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cons.c,v 1.2 1996/03/04 10:35:21 mickey Exp $ */ +/* $OpenBSD: if_cons.c,v 1.3 2001/05/16 12:54:07 ho Exp $ */ /* $NetBSD: if_cons.c,v 1.7 1996/02/13 22:09:44 christos Exp $ */ /*- @@ -595,8 +595,6 @@ make_partial_x25_packet(isop, lcp) return 0; } MGETHDR(m, M_WAITOK, MT_DATA); - if (m == 0) - return ENOBUFS; buf = mtod(m, caddr_t); ptr = buf; |