]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xen/biomerge: Use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sun, 5 Aug 2018 00:50:14 +0000 (19:50 -0500)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 6 Aug 2018 14:20:57 +0000 (10:20 -0400)
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>
drivers/xen/biomerge.c

index 30d7f52eb7cad2e6cc2eaa46c8f9794d09f6a6a2..55ed80c3a17c089ac0267fca2bc904c1b600fe51 100644 (file)
@@ -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);