summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/dma-contiguous.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/dma-contiguous.h')
-rw-r--r--include/asm-generic/dma-contiguous.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/dma-contiguous.h b/include/asm-generic/dma-contiguous.h
index c544356b374..294b1e755ab 100644
--- a/include/asm-generic/dma-contiguous.h
+++ b/include/asm-generic/dma-contiguous.h
@@ -18,7 +18,7 @@ static inline void dev_set_cma_area(struct device *dev, struct cma *cma)
{
if (dev)
dev->cma_area = cma;
- if (!dev || !dma_contiguous_default_area)
+ if (!dev && !dma_contiguous_default_area)
dma_contiguous_default_area = cma;
}