OSDN Git Service

tipc: bcast: use true and false for boolean values
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 5 Mar 2018 21:56:14 +0000 (15:56 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 17:18:00 +0000 (12:18 -0500)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c

index 37892b3..f371117 100644 (file)
@@ -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;
 }