From: Ying Xue <ying.xue@windriver.com>
To: "Gustavo A. R. Silva" <garsilva@embeddedor.com>,
Jon Maloy <jon.maloy@ericsson.com>,
"David S. Miller" <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>, <tipc-discussion@lists.sourceforge.net>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] tipc: bcast: use true and false for boolean values
Date: Tue, 6 Mar 2018 11:11:21 +0800 [thread overview]
Message-ID: <7dd608de-c048-306a-643c-8a98778eaef3@windriver.com> (raw)
In-Reply-To: <20180305215614.GA15175@embeddedor.com>
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;
> }
>
next prev parent reply other threads:[~2018-03-06 3:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2018-03-07 17:18 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7dd608de-c048-306a-643c-8a98778eaef3@windriver.com \
--to=ying.xue@windriver.com \
--cc=davem@davemloft.net \
--cc=garsilva@embeddedor.com \
--cc=jon.maloy@ericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tipc-discussion@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox