diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-09 14:48:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-09 14:02:50 -0700 |
commit | 1a363b0d3bdc7ee369d1f46f2ed7538b1d9481c7 (patch) | |
tree | b6c0c325912073b164aeea45f5586b315dbb26a5 | |
parent | f15cdaf237e9acc2ee14663ba53b872a27ee7015 (diff) | |
download | linux-1a363b0d3bdc7ee369d1f46f2ed7538b1d9481c7.tar.bz2 |
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 <gustavo@embeddedor.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 1833e7505aca..7175086677fb 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); |