Skip to content

Commit

Permalink
arm64: Use bool function return values of true/false not 1/0
Browse files Browse the repository at this point in the history
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Joe Perches authored and Will Deacon committed Mar 31, 2015
1 parent 475bfd3 commit cc3979b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static inline int dma_set_mask(struct device *dev, u64 mask)
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 - 1 <= *dev->dma_mask;
}
Expand Down

0 comments on commit cc3979b

Please sign in to comment.