aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/dma-mapping.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-30 16:46:03 -0700
committerRalf Baechle <ralf@linux-mips.org>2015-04-01 17:22:16 +0200
commit3db2742554bb7cc077de478c2ebf9c1efdd317f5 (patch)
treec225510f39c63254ed3f8e3b846150cad95f06e0 /arch/mips/include/asm/dma-mapping.h
parentMIPS: Octeon: Fix to IP checksum offloading in Little Endian (diff)
downloadlinux-dev-3db2742554bb7cc077de478c2ebf9c1efdd317f5.tar.xz
linux-dev-3db2742554bb7cc077de478c2ebf9c1efdd317f5.zip
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>
Diffstat (limited to 'arch/mips/include/asm/dma-mapping.h')
-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)
static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
{
if (!dev->dma_mask)
- return 0;
+ return false;
return addr + size <= *dev->dma_mask;
}