diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-02-29 14:45:28 +0100 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-05-21 15:06:12 +0200 |
commit | 553ac78877242b6d8b591323731df304140d0f99 (patch) | |
tree | fe826ee0134b8a97df9350648f85a94edd06f042 /arch/arm/mm | |
parent | 6b6f770b573903f8a7d1cfab1fc662685653f413 (diff) | |
download | linux-3.10-553ac78877242b6d8b591323731df304140d0f99.tar.gz linux-3.10-553ac78877242b6d8b591323731df304140d0f99.tar.bz2 linux-3.10-553ac78877242b6d8b591323731df304140d0f99.zip |
ARM: dma-mapping: introduce DMA_ERROR_CODE constant
Replace all uses of ~0 with DMA_ERROR_CODE, what should make the code
easier to read.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-By: Subash Patel <subash.ramaswamy@linaro.org>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/dma-mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 322c70a0190..e4ac5fc86b0 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -342,7 +342,7 @@ __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, */ gfp &= ~(__GFP_COMP); - *handle = ~0; + *handle = DMA_ERROR_CODE; size = PAGE_ALIGN(size); page = __dma_alloc_buffer(dev, size, gfp); |