mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
f15cdaf237
commit
1a363b0d3b
1 changed files with 2 additions and 2 deletions
|
@ -117,9 +117,9 @@ static bool qeth_l3_is_addr_covered_by_ipato(struct qeth_card *card,
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
if (!card->ipato.enabled)
|
if (!card->ipato.enabled)
|
||||||
return 0;
|
return false;
|
||||||
if (addr->type != QETH_IP_TYPE_NORMAL)
|
if (addr->type != QETH_IP_TYPE_NORMAL)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
qeth_l3_convert_addr_to_bits((u8 *) &addr->u, addr_bits,
|
qeth_l3_convert_addr_to_bits((u8 *) &addr->u, addr_bits,
|
||||||
(addr->proto == QETH_PROT_IPV4)? 4:16);
|
(addr->proto == QETH_PROT_IPV4)? 4:16);
|
||||||
|
|
Loading…
Reference in a new issue