summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/isp_pci.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/isp_pci.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/isp_pci.c')
-rw-r--r--sys/dev/pci/isp_pci.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/pci/isp_pci.c b/sys/dev/pci/isp_pci.c
index 47e940d00bf..6612d54a7df 100644
--- a/sys/dev/pci/isp_pci.c
+++ b/sys/dev/pci/isp_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp_pci.c,v 1.18 2001/04/04 22:05:37 mjacob Exp $ */
+/* $OpenBSD: isp_pci.c,v 1.19 2001/05/16 12:51:49 ho Exp $ */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
*
@@ -769,17 +769,9 @@ isp_pci_mbxdma(struct ispsoftc *isp)
len = isp->isp_maxcmds * sizeof (XS_T);
isp->isp_xflist = (XS_T **) malloc(len, M_DEVBUF, M_WAITOK);
- if (isp->isp_xflist == NULL) {
- printf("%s: cannot malloc xflist array\n", isp->isp_name);
- return (1);
- }
bzero(isp->isp_xflist, len);
len = isp->isp_maxcmds * sizeof (bus_dmamap_t);
pci->pci_xfer_dmap = (bus_dmamap_t *) malloc(len, M_DEVBUF, M_WAITOK);
- if (pci->pci_xfer_dmap == NULL) {
- printf("%s: cannot dma xfer map array\n", isp->isp_name);
- return (1);
- }
/*
* Allocate and map the request queue.