Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71695dd8 authored by Russell King's avatar Russell King
Browse files

ARM: dmabounce: avoid needless valid_dma_direction() check



This check is done at the DMA API level, so there's no point repeating
it here.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 8021a4a0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -334,8 +334,6 @@ dma_addr_t __dma_map_page(struct device *dev, struct page *page,
	dev_dbg(dev, "%s(page=%p,off=%#lx,size=%zx,dir=%x)\n",
		__func__, page, offset, size, dir);

	BUG_ON(!valid_dma_direction(dir));

	if (PageHighMem(page)) {
		dev_err(dev, "DMA buffer bouncing of HIGHMEM pages "
			     "is not supported\n");