summaryrefslogtreecommitdiff
path: root/sys/netns/ns.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:54:35 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:54:35 +0000
commit60de2c41ea2b387be2e4b7b9b565329dd0a61c36 (patch)
tree8652597c096bbc850f6862988cd18624122c0051 /sys/netns/ns.c
parent87f10021e726a2d2d79e079d9fe15180e3023b3e (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/netns/ns.c')
-rw-r--r--sys/netns/ns.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netns/ns.c b/sys/netns/ns.c
index 338c3701394..a72458f2f5e 100644
--- a/sys/netns/ns.c
+++ b/sys/netns/ns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ns.c,v 1.2 1996/03/04 08:20:22 niklas Exp $ */
+/* $OpenBSD: ns.c,v 1.3 2001/05/16 12:54:07 ho Exp $ */
/* $NetBSD: ns.c,v 1.10 1996/02/13 22:13:49 christos Exp $ */
/*
@@ -131,8 +131,6 @@ ns_control(so, cmd, data, ifp)
if (ia == 0) {
ia = (struct ns_ifaddr *)
malloc(sizeof *ia, M_IFADDR, M_WAITOK);
- if (ia == 0)
- return (ENOBUFS);
bzero((caddr_t)ia, sizeof(*ia));
TAILQ_INSERT_TAIL(&ns_ifaddr, ia, ia_list);
TAILQ_INSERT_TAIL(&ifp->if_addrlist, (struct ifaddr *)ia,