aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-07-01 10:24:58 -0400
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-08-10 13:43:03 -0400
commitc8ced113c283008f734ac7a66f173f4305fe1319 (patch)
treefaebd730c5492ba03293b6dcea6ff4626f459f7b /drivers/rpmsg
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
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>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/virtio_rpmsg_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index fe03b2aef450..e58637aa6b2c 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,
528 * rpmsg server channels has predefined local address (for now), 528 * rpmsg server channels has predefined local address (for now),
529 * and their existence needs to be announced remotely 529 * and their existence needs to be announced remotely
530 */ 530 */
531 rpdev->announce = rpdev->src != RPMSG_ADDR_ANY ? true : false; 531 rpdev->announce = rpdev->src != RPMSG_ADDR_ANY;
532 532
533 strncpy(rpdev->id.name, chinfo->name, RPMSG_NAME_SIZE); 533 strncpy(rpdev->id.name, chinfo->name, RPMSG_NAME_SIZE);
534 534