1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00
This commit is contained in:
Maxime Henrion 2003-04-15 03:11:03 +00:00
parent 5a00719d7b
commit 0cb112309a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113492
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);