This commit is contained in:
mux 2003-04-15 03:11:03 +00:00
parent e27fa75a25
commit 565ce22e86
2 changed files with 4 additions and 4 deletions

View File

@ -566,7 +566,7 @@ bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
#else
bus_dma_segment_t dm_segments[BUS_DMAMAP_NSEGS];
#endif
bus_addr_t lastaddr = 0;
bus_addr_t lastaddr = 0;
int error, nsegs = 0;
if (map != NULL) {
@ -579,7 +579,7 @@ bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
NULL, flags, &lastaddr, &nsegs, 1);
if (error == EINPROGRESS)
return error;
return (error);
if (error)
(*callback)(callback_arg, dm_segments, 0, error);

View File

@ -566,7 +566,7 @@ bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
#else
bus_dma_segment_t dm_segments[BUS_DMAMAP_NSEGS];
#endif
bus_addr_t lastaddr = 0;
bus_addr_t lastaddr = 0;
int error, nsegs = 0;
if (map != NULL) {
@ -579,7 +579,7 @@ bus_dmamap_load(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
NULL, flags, &lastaddr, &nsegs, 1);
if (error == EINPROGRESS)
return error;
return (error);
if (error)
(*callback)(callback_arg, dm_segments, 0, error);