Skip to content

Commit

Permalink
swiotlb: use unmap_single instead of swiotlb_unmap_single in swiotlb_…
Browse files Browse the repository at this point in the history
…free_coherent

We don't need any check in swiotlb_unmap_single here. unmap_single is
appropriate.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Sep 8, 2008
1 parent 9dfda12 commit 21f6c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr,
free_pages((unsigned long) vaddr, get_order(size));
else
/* DMA_TO_DEVICE to avoid memcpy in unmap_single */
swiotlb_unmap_single (hwdev, dma_handle, size, DMA_TO_DEVICE);
unmap_single(hwdev, vaddr, size, DMA_TO_DEVICE);
}

static void
Expand Down

0 comments on commit 21f6c4d

Please sign in to comment.