diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1998-12-22 20:21:12 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1998-12-22 20:21:12 +0000 |
| commit | 800df04d576608e25fd71bc50af473b75c0b9ec5 (patch) | |
| tree | f9bba493c5e316953b3612f251bf78a3c8898755 | |
| parent | 3c68dd1aec3ed8f50d4a69db309a62fa708c5db5 (diff) | |
Notes
| -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 1f7e6c6ea8ac6..47c12a51bdade 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); |
