Skip to content

Commit 1c6e4b1

Browse files
JoePerchesMartin Schwidefsky
authored and
Martin Schwidefsky
committed
s390: Use bool function return values of true/false not 1/0
Use the normal return values for bool functions Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent bb0fd7a commit 1c6e4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/include/asm/dma-mapping.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static inline int dma_supported(struct device *dev, u64 mask)
4242
static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
4343
{
4444
if (!dev->dma_mask)
45-
return 0;
45+
return false;
4646
return addr + size - 1 <= *dev->dma_mask;
4747
}
4848

0 commit comments

Comments
 (0)