net: fix assignment of 0/1 to bool variables.
DaveM said: Please, this kind of stuff rots forever and not using bool properly drives me crazy. Joe Perches <joe@perches.com> gave me the spatch script: @@ bool b; @@ -b = 0 +b = false @@ bool b; @@ -b = 1 +b = true I merely installed coccinelle, read the documentation and took credit. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a8e510f682
commit
3db1cd5c05
@@ -108,7 +108,7 @@ static bool ip_vs_sip_ct_match(const struct ip_vs_conn_param *p,
|
||||
struct ip_vs_conn *ct)
|
||||
|
||||
{
|
||||
bool ret = 0;
|
||||
bool ret = false;
|
||||
|
||||
if (ct->af == p->af &&
|
||||
ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) &&
|
||||
@@ -121,7 +121,7 @@ static bool ip_vs_sip_ct_match(const struct ip_vs_conn_param *p,
|
||||
ct->protocol == p->protocol &&
|
||||
ct->pe_data && ct->pe_data_len == p->pe_data_len &&
|
||||
!memcmp(ct->pe_data, p->pe_data, p->pe_data_len))
|
||||
ret = 1;
|
||||
ret = true;
|
||||
|
||||
IP_VS_DBG_BUF(9, "SIP template match %s %s->%s:%d %s\n",
|
||||
ip_vs_proto_name(p->protocol),
|
||||
|
Reference in New Issue
Block a user