aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/dma-mapping.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-30 16:46:04 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-31 14:19:47 +1100
commitacdb66857fb9a713c93bb3e6edba5ee478ba0678 (patch)
treeeb1fd2cf6064c4592072915b22856b5f96d47316 /arch/powerpc/include/asm/dma-mapping.h
parentselftests/powerpc: Add a test of the switch_endian() syscall (diff)
downloadlinux-dev-acdb66857fb9a713c93bb3e6edba5ee478ba0678.tar.xz
linux-dev-acdb66857fb9a713c93bb3e6edba5ee478ba0678.zip
powerpc: 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> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/dma-mapping.h')
-rw-r--r--arch/powerpc/include/asm/dma-mapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/dma-mapping.h b/arch/powerpc/include/asm/dma-mapping.h
index 894d538f3567..9103687b0436 100644
--- a/arch/powerpc/include/asm/dma-mapping.h
+++ b/arch/powerpc/include/asm/dma-mapping.h
@@ -191,11 +191,11 @@ static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
struct dev_archdata *sd = &dev->archdata;
if (sd->max_direct_dma_addr && addr + size > sd->max_direct_dma_addr)
- return 0;
+ return false;
#endif
if (!dev->dma_mask)
- return 0;
+ return false;
return addr + size - 1 <= *dev->dma_mask;
}