diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-05-16 12:51:51 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-05-16 12:51:51 +0000 |
commit | 87f10021e726a2d2d79e079d9fe15180e3023b3e (patch) | |
tree | 3dac3102be5f942a0db26367ab9ee941dbe8dd02 /sys/dev/pci/pccbb.c | |
parent | a1ba5f046489f61451990b86f39a64f15b7a177a (diff) |
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.c | 9 |
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; |