rpmsg: remove unneeded conversions to bool

Found with scripts/coccinelle/misc/boolconv.cocci.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Andrew F. Davis 2016-07-01 09:24:58 -05:00 committed by Bjorn Andersson
parent 29b4817d40
commit c8ced113c2
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ static struct rpmsg_channel *rpmsg_create_channel(struct virtproc_info *vrp,
* rpmsg server channels has predefined local address (for now), * rpmsg server channels has predefined local address (for now),
* and their existence needs to be announced remotely * 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); strncpy(rpdev->id.name, chinfo->name, RPMSG_NAME_SIZE);