aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-30 19:46:03 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-04-01 11:22:16 -0400
commit3db2742554bb7cc077de478c2ebf9c1efdd317f5 (patch)
treec225510f39c63254ed3f8e3b846150cad95f06e0
parent97b290b5637f473588a297834c10cd750718e980 (diff)
MIPS: Use bool function return values of true/false not 1/0
Use the normal return values for bool functions Signed-off-by: Joe Perches <joe@perches.com> Cc: linux-kernel@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9640/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/include/asm/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/dma-mapping.h b/arch/mips/include/asm/dma-mapping.h
index 06412aa9e3fb..fd1b4a150759 100644
--- a/arch/mips/include/asm/dma-mapping.h
+++ b/arch/mips/include/asm/dma-mapping.h
@@ -23,7 +23,7 @@ static inline struct dma_map_ops *get_dma_ops(struct device *dev)
23static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) 23static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
24{ 24{
25 if (!dev->dma_mask) 25 if (!dev->dma_mask)
26 return 0; 26 return false;
27 27
28 return addr + size <= *dev->dma_mask; 28 return addr + size <= *dev->dma_mask;
29} 29}