summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pccbb.c
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2001-05-16 12:48:31 +0000
committerho <ho@openbsd.org>2001-05-16 12:48:31 +0000
commitd424e204e60bfd7ffd01a57d3983f326a20fef28 (patch)
tree49e17bdb4138ce9da9ed97cdb6b57b088efe1497 /sys/dev/pci/pccbb.c
parentdocument SMALL_KERNEL. (diff)
downloadwireguard-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/dev/pci/pccbb.c')
-rw-r--r--sys/dev/pci/pccbb.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index 40558d3263e..b661b6094cf 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccbb.c,v 1.18 2001/05/01 02:19:46 mickey Exp $ */
+/* $OpenBSD: pccbb.c,v 1.19 2001/05/16 12:51:49 ho Exp $ */
/* $NetBSD: pccbb.c,v 1.42 2000/06/16 23:41:35 cgd Exp $ */
/*
@@ -1688,11 +1688,8 @@ pccbb_intr_establish(sc, irq, level, func, arg)
/*
* Allocate a room for interrupt handler structure.
*/
- if (NULL == (newpil =
- (struct pccbb_intrhand_list *)malloc(sizeof(struct
- pccbb_intrhand_list), M_DEVBUF, M_WAITOK))) {
- return NULL;
- }
+ newpil = (struct pccbb_intrhand_list *)
+ malloc(sizeof(struct pccbb_intrhand_list), M_DEVBUF, M_WAITOK);
newpil->pil_func = func;
newpil->pil_arg = arg;