Skip to content

Commit 3437021

Browse files
Ben DooksRussell King (Oracle)
authored andcommitted
ARM: 9218/1: dma-mapping: fix pointer/integer warning
Fix the use of a pointer assignment from integer where false is being used instead of NULL. Fix the following warning by usign NULL: arch/arm/mm/dma-mapping.c:712:52: warning: Using plain integer as NULL pointer Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent b97abb4 commit 3437021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mm/dma-mapping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ static void *__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle,
709709

710710
*handle = DMA_MAPPING_ERROR;
711711
allowblock = gfpflags_allow_blocking(gfp);
712-
cma = allowblock ? dev_get_cma_area(dev) : false;
712+
cma = allowblock ? dev_get_cma_area(dev) : NULL;
713713

714714
if (cma)
715715
buf->allocator = &cma_allocator;

0 commit comments

Comments
 (0)