netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tipc: bcast: use true and false for boolean values
@ 2018-03-05 21:56 Gustavo A. R. Silva
  2018-03-06  3:11 ` Ying Xue
  2018-03-07 17:18 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Gustavo A. R. Silva @ 2018-03-05 21:56 UTC (permalink / raw)
  To: Jon Maloy, Ying Xue, David S. Miller
  Cc: netdev, tipc-discussion, linux-kernel, Gustavo A. R. Silva

Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
 net/tipc/bcast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c
index 37892b3..f371117 100644
--- a/net/tipc/bcast.c
+++ b/net/tipc/bcast.c
@@ -574,5 +574,5 @@ void tipc_nlist_purge(struct tipc_nlist *nl)
 {
 	tipc_dest_list_purge(&nl->list);
 	nl->remote = 0;
-	nl->local = 0;
+	nl->local = false;
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tipc: bcast: use true and false for boolean values
  2018-03-05 21:56 [PATCH] tipc: bcast: use true and false for boolean values Gustavo A. R. Silva
@ 2018-03-06  3:11 ` Ying Xue
  2018-03-07 17:18 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Ying Xue @ 2018-03-06  3:11 UTC (permalink / raw)
  To: Gustavo A. R. Silva, Jon Maloy, David S. Miller
  Cc: netdev, tipc-discussion, linux-kernel

On 03/06/2018 05:56 AM, Gustavo A. R. Silva wrote:
> Assign true or false to boolean variables instead of an integer value.
> 
> This issue was detected with the help of Coccinelle.
> 
> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>

Acked-by: Ying Xue <ying.xue@windriver.com>

> ---
>  net/tipc/bcast.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c
> index 37892b3..f371117 100644
> --- a/net/tipc/bcast.c
> +++ b/net/tipc/bcast.c
> @@ -574,5 +574,5 @@ void tipc_nlist_purge(struct tipc_nlist *nl)
>  {
>  	tipc_dest_list_purge(&nl->list);
>  	nl->remote = 0;
> -	nl->local = 0;
> +	nl->local = false;
>  }
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tipc: bcast: use true and false for boolean values
  2018-03-05 21:56 [PATCH] tipc: bcast: use true and false for boolean values Gustavo A. R. Silva
  2018-03-06  3:11 ` Ying Xue
@ 2018-03-07 17:18 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2018-03-07 17:18 UTC (permalink / raw)
  To: garsilva; +Cc: jon.maloy, ying.xue, netdev, tipc-discussion, linux-kernel

From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Date: Mon, 5 Mar 2018 15:56:14 -0600

> Assign true or false to boolean variables instead of an integer value.
> 
> This issue was detected with the help of Coccinelle.
> 
> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-07 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-05 21:56 [PATCH] tipc: bcast: use true and false for boolean values Gustavo A. R. Silva
2018-03-06  3:11 ` Ying Xue
2018-03-07 17:18 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).