]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
s390/qeth: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 9 Aug 2018 12:48:04 +0000 (14:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:02:50 +0000 (14:02 -0700)
Return statements in functions returning bool should use true or false
instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l3_main.c

index 1833e7505aca45fd5659437677c34494538fe2e2..7175086677fb4be85cc41dd2748157e71986fd30 100644 (file)
@@ -117,9 +117,9 @@ static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card,
        int rc = 0;
 
        if (!card->ipato.enabled)
-               return 0;
+               return false;
        if (addr->type != QETH_IP_TYPE_NORMAL)
-               return 0;
+               return false;
 
        qeth_l3_convert_addr_to_bits((u8 *) &addr->u, addr_bits,
                                  (addr->proto == QETH_PROT_IPV4)? 4:16);