Skip to content

Commit

Permalink
xen/biomerge: Use true and false for boolean values
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
  • Loading branch information
Gustavo A. R. Silva authored and Boris Ostrovsky committed Aug 6, 2018
1 parent 2789e83 commit bf06bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/biomerge.c
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,
* XXX: Add support for merging bio_vec when using different page
* size in Xen and Linux.
*/
return 0;
return false;
#endif
}
EXPORT_SYMBOL(xen_biovec_phys_mergeable);

0 comments on commit bf06bad

Please sign in to comment.