diff options
author | Sean Paul <seanpaul@chromium.org> | 2014-10-01 16:31:50 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-10-02 11:57:08 +0100 |
commit | a52ce121918382a4249d621cceb07c30e1c00fa2 (patch) | |
tree | b8f83b91f49aa176451390fecee5fb4a0c6a3ef4 | |
parent | 7acf71d1a224b6e7a40a244d804cea1780a643ed (diff) | |
download | op-kernel-dev-a52ce121918382a4249d621cceb07c30e1c00fa2.zip op-kernel-dev-a52ce121918382a4249d621cceb07c30e1c00fa2.tar.gz |
arm64: Use DMA_ERROR_CODE to denote failed allocation
This patch replaces the static assignment of ~0 to dma_handle with
DMA_ERROR_CODE to be consistent with other platforms.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r-- | arch/arm64/mm/dma-mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index d6ceb3d..2c71077 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -122,7 +122,7 @@ static void *__dma_alloc_noncoherent(struct device *dev, size_t size, no_map: __dma_free_coherent(dev, size, ptr, *dma_handle, attrs); no_mem: - *dma_handle = ~0; + *dma_handle = DMA_ERROR_CODE; return NULL; } |