summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-05 02:37:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-05 16:29:11 +0200
commit7a92719356cac8fef100a8a92e64b583f39368d2 (patch)
treeffe49d2bc5ed0a8bba11b2d7de26578d72a8d318 /drivers/misc
parentmisc: eeprom: assignment outside the if statement (diff)
downloadlinux-7a92719356cac8fef100a8a92e64b583f39368d2.tar.xz
linux-7a92719356cac8fef100a8a92e64b583f39368d2.zip
genwqe: card_base: Use true and false for boolean values
Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/genwqe/card_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/genwqe/card_base.h b/drivers/misc/genwqe/card_base.h
index 1c3967f10f55..120738d6e58b 100644
--- a/drivers/misc/genwqe/card_base.h
+++ b/drivers/misc/genwqe/card_base.h
@@ -497,7 +497,7 @@ int genwqe_user_vunmap(struct genwqe_dev *cd, struct dma_mapping *m);
static inline bool dma_mapping_used(struct dma_mapping *m)
{
if (!m)
- return 0;
+ return false;
return m->size != 0;
}