summaryrefslogtreecommitdiff
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2022-07-25 01:39:21 +0300
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-07-28 17:09:16 +0300
commit3437021484dd8f71685012d47c2d2de6f020e943 (patch)
treebffa212efbc0e07f5a23972d3e9bf4fcda857e50 /arch/arm/mm
parentb97abb4d0e23766650619a6a57a52c91deb89b8a (diff)
downloadlinux-3437021484dd8f71685012d47c2d2de6f020e943.tar.xz
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 <ben-linux@fluff.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/dma-mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index 059cce018570..1483b6a4319d 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -709,7 +709,7 @@ static void *__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle,
*handle = DMA_MAPPING_ERROR;
allowblock = gfpflags_allow_blocking(gfp);
- cma = allowblock ? dev_get_cma_area(dev) : false;
+ cma = allowblock ? dev_get_cma_area(dev) : NULL;
if (cma)
buf->allocator = &cma_allocator;