summaryrefslogtreecommitdiff
path: root/sys/netipx
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/netipx
parent87f10021e726a2d2d79e079d9fe15180e3023b3e (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netipx/ipx.c b/sys/netipx/ipx.c
index 1107eb32c58..30a337cb289 100644
--- a/sys/netipx/ipx.c
+++ b/sys/netipx/ipx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx.c,v 1.9 2000/01/15 18:52:13 fgsch Exp $ */
+/* $OpenBSD: ipx.c,v 1.10 2001/05/16 12:54:06 ho Exp $ */
/*-
*
@@ -101,8 +101,6 @@ ipx_control(so, cmd, data, ifp)
if (ia == (struct ipx_ifaddr *)NULL) {
ia = (struct ipx_ifaddr *)
malloc(sizeof(*ia), M_IFADDR, M_WAITOK);
- if (ia == (struct ipx_ifaddr *)NULL)
- return (ENOBUFS);
bzero((caddr_t)ia, sizeof(*ia));
TAILQ_INSERT_TAIL(&ifp->if_addrlist,
(struct ifaddr *)ia, ifa_list);