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/tp_driver.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/tp_driver.c')
-rw-r--r-- | sys/netiso/tp_driver.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/netiso/tp_driver.c b/sys/netiso/tp_driver.c index 55db1bde56d..c2df0f0ee08 100644 --- a/sys/netiso/tp_driver.c +++ b/sys/netiso/tp_driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tp_driver.c,v 1.4 1998/04/04 02:55:57 don Exp $ */ +/* $OpenBSD: tp_driver.c,v 1.5 2001/05/16 12:54:07 ho Exp $ */ /* $NetBSD: tp_driver.c,v 1.8 1996/03/16 23:13:45 christos Exp $ */ #include "tp_states.h" @@ -161,15 +161,13 @@ _Xebec_action(a, e, p) (int) p->tp_flags, p->tp_ucddata, 0, 0); #endif data = MCPY(p->tp_ucddata, M_WAIT); - if (data) { #ifdef ARGO_DEBUG - if (argo_debug[D_CONN]) { - printf("T_CONN_req.trans m_copy cc %p\n", - p->tp_ucddata); - dump_mbuf(data, "sosnd @ T_CONN_req"); - } -#endif + if (argo_debug[D_CONN]) { + printf("T_CONN_req.trans m_copy cc %p\n", + p->tp_ucddata); + dump_mbuf(data, "sosnd @ T_CONN_req"); } +#endif if ((error = tp_emit(CR_TPDU_type, p, 0, 0, data)) != 0) return error; /* driver WON'T change state; * will return error */ |