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>
This commit is contained in:
parent
7acf71d1a2
commit
a52ce12191
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ static void *__dma_alloc_noncoherent(struct device *dev, size_t size,
|
||||||
no_map:
|
no_map:
|
||||||
__dma_free_coherent(dev, size, ptr, *dma_handle, attrs);
|
__dma_free_coherent(dev, size, ptr, *dma_handle, attrs);
|
||||||
no_mem:
|
no_mem:
|
||||||
*dma_handle = ~0;
|
*dma_handle = DMA_ERROR_CODE;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue