[POC][PATCH 40/83] nios2: dma_free_coherent(): get rid of pointless casts

From: Al Viro
Date: Mon Dec 21 2015 - 19:00:29 EST


From: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
---
arch/nios2/mm/dma-mapping.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/nios2/mm/dma-mapping.c b/arch/nios2/mm/dma-mapping.c
index fa242ab..0195f8f 100644
--- a/arch/nios2/mm/dma-mapping.c
+++ b/arch/nios2/mm/dma-mapping.c
@@ -50,9 +50,7 @@ EXPORT_SYMBOL(dma_alloc_coherent);
void dma_free_coherent(struct device *dev, size_t size, void *vaddr,
dma_addr_t dma_handle)
{
- unsigned long addr = (unsigned long) CAC_ADDR((unsigned long) vaddr);
-
- free_pages((void *)addr, get_order(size));
+ free_pages(CAC_ADDR(vaddr), get_order(size));
}
EXPORT_SYMBOL(dma_free_coherent);

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/