From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: "Andrew F. Davis" <afd@ti.com>
Cc: Ohad Ben-Cohen <ohad@wizery.com>,
linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rpmsg: remove unneeded conversions to bool
Date: Wed, 13 Jul 2016 13:42:35 -0700 [thread overview]
Message-ID: <20160713204235.GN23833@tuxbot> (raw)
In-Reply-To: <20160701142458.17021-1-afd@ti.com>
On Fri 01 Jul 07:24 PDT 2016, Andrew F. Davis wrote:
> Found with scripts/coccinelle/misc/boolconv.cocci.
>
> Signed-off-by: Andrew F. Davis <afd@ti.com>
Applied, thanks
Regards,
Bjorn
> ---
> drivers/rpmsg/virtio_rpmsg_bus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
> index fe03b2a..e58637a 100644
> --- a/drivers/rpmsg/virtio_rpmsg_bus.c
> +++ b/drivers/rpmsg/virtio_rpmsg_bus.c
> @@ -528,7 +528,7 @@ static struct rpmsg_channel *rpmsg_create_channel(struct virtproc_info *vrp,
> * rpmsg server channels has predefined local address (for now),
> * and their existence needs to be announced remotely
> */
> - rpdev->announce = rpdev->src != RPMSG_ADDR_ANY ? true : false;
> + rpdev->announce = rpdev->src != RPMSG_ADDR_ANY;
>
> strncpy(rpdev->id.name, chinfo->name, RPMSG_NAME_SIZE);
>
> --
> 2.9.0
>
prev parent reply other threads:[~2016-07-13 20:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-01 14:24 [PATCH] rpmsg: remove unneeded conversions to bool Andrew F. Davis
2016-07-13 20:42 ` Bjorn Andersson [this message]
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=20160713204235.GN23833@tuxbot \
--to=bjorn.andersson@linaro.org \
--cc=afd@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=ohad@wizery.com \
/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