From: Gustavo A. R. Silva Date: Thu, 9 Aug 2018 12:48:04 +0000 (+0200) Subject: s390/qeth: use true and false for boolean values X-Git-Tag: v4.19~410^2~81^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a363b0d3bdc7ee369d1f46f2ed7538b1d9481c7;p=platform%2Fkernel%2Flinux-rpi3.git s390/qeth: use true and false for boolean values 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 Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 1833e75..7175086 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -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);