summaryrefslogtreecommitdiff
path: root/sys/compat/sunos/sunos_misc.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:50:22 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:50:22 +0000
commita1ba5f046489f61451990b86f39a64f15b7a177a (patch)
tree592ed6a3cf10a0b29b117e9b3506d9e32bf50813 /sys/compat/sunos/sunos_misc.c
parent885c6fa9e2c5dae9c5fbc277bc5b7018e4d78ac8 (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/compat/sunos/sunos_misc.c')
-rw-r--r--sys/compat/sunos/sunos_misc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c
index dbef9174ff2..b05b8204979 100644
--- a/sys/compat/sunos/sunos_misc.c
+++ b/sys/compat/sunos/sunos_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_misc.c,v 1.26 2001/05/05 21:26:42 art Exp $ */
+/* $OpenBSD: sunos_misc.c,v 1.27 2001/05/16 12:50:20 ho Exp $ */
/* $NetBSD: sunos_misc.c,v 1.65 1996/04/22 01:44:31 christos Exp $ */
/*
@@ -545,8 +545,6 @@ sunos_sys_setsockopt(p, v, retval)
#define SO_DONTLINGER (~SO_LINGER)
if (SCARG(uap, name) == SO_DONTLINGER) {
m = m_get(M_WAIT, MT_SOOPTS);
- if (m == NULL)
- return (ENOBUFS);
mtod(m, struct linger *)->l_onoff = 0;
m->m_len = sizeof(struct linger);
return (sosetopt((struct socket *)fp->f_data, SCARG(uap, level),
@@ -575,8 +573,6 @@ sunos_sys_setsockopt(p, v, retval)
return (EINVAL);
if (SCARG(uap, val)) {
m = m_get(M_WAIT, MT_SOOPTS);
- if (m == NULL)
- return (ENOBUFS);
error = copyin(SCARG(uap, val), mtod(m, caddr_t),
(u_int)SCARG(uap, valsize));
if (error) {