From 5a9d63c1ce2878aa792c49a1205ebb73dbe6258f Mon Sep 17 00:00:00 2001 From: ligd Date: Mon, 28 Feb 2022 16:31:54 +0800 Subject: [PATCH 05/10] rpmsg_virtio: don't need check status when get_tx_payload VELAOS-21 Change-Id: Icb01034dfab146b3a02ea2c70dbdf197d8ed419f Signed-off-by: ligd --- lib/rpmsg/rpmsg_virtio.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/rpmsg/rpmsg_virtio.c open-amp/lib/rpmsg/rpmsg_virtio.c index 4960aa8a..1f6ce593 100644 --- a/lib/rpmsg/rpmsg_virtio.c +++ open-amp/lib/rpmsg/rpmsg_virtio.c @@ -356,11 +356,6 @@ static void *rpmsg_virtio_get_tx_payload_buffer(struct rpmsg_device *rdev, /* Get the associated remote device for channel. */ rvdev = metal_container_of(rdev, struct rpmsg_virtio_device, rdev); - /* Validate device state */ - status = rpmsg_virtio_get_status(rvdev); - if (!(status & VIRTIO_CONFIG_STATUS_DRIVER_OK)) - return NULL; - if (wait) tick_count = RPMSG_TICK_COUNT / RPMSG_TICKS_PER_INTERVAL; else -- 2.25.1