From: Ying Xue Subject: Re: [PATCH] tipc: bcast: use true and false for boolean values Date: Tue, 6 Mar 2018 11:11:21 +0800 Message-ID: <7dd608de-c048-306a-643c-8a98778eaef3@windriver.com> References: <20180305215614.GA15175@embeddedor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org To: "Gustavo A. R. Silva" , Jon Maloy , "David S. Miller" Return-path: In-Reply-To: <20180305215614.GA15175@embeddedor.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tipc-discussion-bounces@lists.sourceforge.net List-Id: netdev.vger.kernel.org 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 Acked-by: Ying Xue > --- > 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