diff options
author | 2001-05-16 12:48:31 +0000 | |
---|---|---|
committer | 2001-05-16 12:48:31 +0000 | |
commit | d424e204e60bfd7ffd01a57d3983f326a20fef28 (patch) | |
tree | 49e17bdb4138ce9da9ed97cdb6b57b088efe1497 /sys/kern/tty_subr.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/kern/tty_subr.c')
-rw-r--r-- | sys/kern/tty_subr.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index b3d0ceae796..dbd1a48e201 100644 --- a/sys/kern/tty_subr.c +++ b/sys/kern/tty_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_subr.c,v 1.10 2001/01/25 03:50:53 todd Exp $ */ +/* $OpenBSD: tty_subr.c,v 1.11 2001/05/16 12:52:58 ho Exp $ */ /* $NetBSD: tty_subr.c,v 1.13 1996/02/09 19:00:43 christos Exp $ */ /* @@ -94,17 +94,10 @@ clalloc(clp, size, quot) { clp->c_cs = malloc(size, M_TTYS, M_WAITOK); - if (!clp->c_cs) - return (-1); bzero(clp->c_cs, size); if (quot) { clp->c_cq = malloc(QMEM(size), M_TTYS, M_WAITOK); - if (!clp->c_cq) { - free(clp->c_cs, M_TTYS); - clp->c_cs = NULL; - return (-1); - } bzero(clp->c_cq, QMEM(size)); } else clp->c_cq = (u_char *)0; |