Skip to contentSkip to conversation

tipc: bcast: fix boolean assignment in tipc_nlist_purge

PATCH New Gustavo A. R. Silva 1 participant 1 message Jan 22, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tipc: bcast: fix boolean assignment in tipc_nlist_purge

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

This issue was detected with the help of Coccinelle.

Fixes 2ae0b8af1fe3 ("tipc: add functionality to lookup multicast destination nodes")
---
 net/tipc/bcast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/bcast.c +1 -1
index 37892b3..f371117 100644
@@ -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;
 }
Signature · 1 line
2.7.4