| From b092024f77f34c679b0537f6481947d297bca281 Mon Sep 17 00:00:00 2001 |
| From: wangyongrong <wangyongrong@xiaomi.com> |
| Date: Wed, 3 Jul 2024 10:28:31 +0800 |
| Subject: [PATCH 08/14] rpmsg_virtio: don't need check status when |
| get_tx_payload |
| |
| Signed-off-by: ligd <liguiding1@xiaomi.com> |
| --- |
| lib/rpmsg/rpmsg_virtio.c | 6 ------ |
| 1 file changed, 6 deletions(-) |
| |
| diff --git a/lib/rpmsg/rpmsg_virtio.c open-amp/lib/rpmsg/rpmsg_virtio.c |
| index e6a4969..9dd14b6 100644 |
| --- a/lib/rpmsg/rpmsg_virtio.c |
| +++ open-amp/lib/rpmsg/rpmsg_virtio.c |
| @@ -352,7 +352,6 @@ static void *rpmsg_virtio_get_tx_payload_buffer(struct rpmsg_device *rdev, |
| { |
| struct rpmsg_virtio_device *rvdev; |
| struct rpmsg_hdr *rp_hdr; |
| - uint8_t virtio_status; |
| uint16_t idx; |
| int tick_count; |
| int status; |
| @@ -360,11 +359,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 = virtio_get_status(rvdev->vdev, &virtio_status); |
| - if (status || !(virtio_status & VIRTIO_CONFIG_STATUS_DRIVER_OK)) |
| - return NULL; |
| - |
| if (wait) |
| tick_count = RPMSG_TICK_COUNT / RPMSG_TICKS_PER_INTERVAL; |
| else |
| -- |
| 2.34.1 |
| |