diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-22 20:21:12 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-22 20:21:12 +0000 |
commit | 987c440a031b5aa7a624898ec5929a22ebb0c61d (patch) | |
tree | a4e4d16566a93f667d38d0c17c5103d45c1836f8 /sys/dev/dpt/dpt_scsi.c | |
parent | abd545d666cb59a3e6c031c9100e2cc2b84a52fb (diff) | |
download | FreeBSD-src-987c440a031b5aa7a624898ec5929a22ebb0c61d.zip FreeBSD-src-987c440a031b5aa7a624898ec5929a22ebb0c61d.tar.gz |
Error check is not necessary - this function cannot fail in this
context.
Noted by: gibbs
Diffstat (limited to 'sys/dev/dpt/dpt_scsi.c')
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index 1f7e6c6..47c12a5 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -43,7 +43,7 @@ * arrays that span controllers (Wow!). */ -#ident "$Id: dpt_scsi.c,v 1.20 1998/10/15 23:46:24 gibbs Exp $" +#ident "$Id: dpt_scsi.c,v 1.21 1998/12/22 00:52:27 eivind Exp $" #define _DPT_C_ @@ -300,13 +300,9 @@ dptallocsgmap(struct dpt_softc *dpt) return (NULL); } - if (bus_dmamap_load(dpt->sg_dmat, sg_map->sg_dmamap, sg_map->sg_vaddr, - PAGE_SIZE, dptmapmem, &sg_map->sg_physaddr, /*flags*/0)) { - bus_dmamem_free(dpt->sg_dmat, sg_map->sg_vaddr, - sg_map->sg_dmamap); - free(sg_map, M_DEVBUF); - return (NULL); - } + (void)bus_dmamap_load(dpt->sg_dmat, sg_map->sg_dmamap, sg_map->sg_vaddr, + PAGE_SIZE, dptmapmem, &sg_map->sg_physaddr, + /*flags*/0); SLIST_INSERT_HEAD(&dpt->sg_maps, sg_map, links); |