summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorBlue Swirl2012-07-08 08:56:53 +0200
committerBlue Swirl2012-07-28 11:23:11 +0200
commit0ed8b6f67f26acc2e88dfc6be4954e63f943bd28 (patch)
tree8490bfb39362e56f8238ba9208114764bc938d7e /dma.h
parenthw/escc: Drop duplicate definition of 'disabled' property (diff)
downloadqemu-0ed8b6f67f26acc2e88dfc6be4954e63f943bd28.tar.gz
qemu-0ed8b6f67f26acc2e88dfc6be4954e63f943bd28.tar.xz
qemu-0ed8b6f67f26acc2e88dfc6be4954e63f943bd28.zip
Avoid returning void
It's silly and non-conforming to standards to return void, don't do it. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dma.h b/dma.h
index acacf1bf27..f35c4b6632 100644
--- a/dma.h
+++ b/dma.h
@@ -196,9 +196,9 @@ static inline void dma_memory_unmap(DMAContext *dma,
DMADirection dir, dma_addr_t access_len)
{
if (!dma_has_iommu(dma)) {
- return cpu_physical_memory_unmap(buffer, (target_phys_addr_t)len,
- dir == DMA_DIRECTION_FROM_DEVICE,
- access_len);
+ cpu_physical_memory_unmap(buffer, (target_phys_addr_t)len,
+ dir == DMA_DIRECTION_FROM_DEVICE,
+ access_len);
} else {
iommu_dma_memory_unmap(dma, buffer, len, dir, access_len);
}