Skip to content

Commit 7a92719

Browse files
GustavoARSilvagregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b83a414 commit 7a92719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/genwqe/card_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ int genwqe_user_vunmap(struct genwqe_dev *cd, struct dma_mapping *m);
497497
static inline bool dma_mapping_used(struct dma_mapping *m)
498498
{
499499
if (!m)
500-
return 0;
500+
return false;
501501
return m->size != 0;
502502
}
503503

0 commit comments

Comments
 (0)