From: Gustavo A. R. Silva Date: Sun, 5 Aug 2018 00:37:03 +0000 (-0500) Subject: genwqe: card_base: Use true and false for boolean values X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7a92719356cac8fef100a8a92e64b583f39368d2;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/genwqe/card_base.h b/drivers/misc/genwqe/card_base.h index 1c3967f10f55d..120738d6e58b2 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; }