2022-11-05 22:16:58 +08:00
|
|
|
From 5a9d63c1ce2878aa792c49a1205ebb73dbe6258f Mon Sep 17 00:00:00 2001
|
|
|
|
From: ligd <liguiding1@xiaomi.com>
|
|
|
|
Date: Mon, 28 Feb 2022 16:31:54 +0800
|
2022-11-21 11:12:33 +08:00
|
|
|
Subject: [PATCH 05/10] rpmsg_virtio: don't need check status when
|
|
|
|
get_tx_payload
|
2022-08-02 16:44:59 +08:00
|
|
|
|
2022-11-05 22:16:58 +08:00
|
|
|
VELAOS-21
|
|
|
|
|
|
|
|
Change-Id: Icb01034dfab146b3a02ea2c70dbdf197d8ed419f
|
|
|
|
Signed-off-by: ligd <liguiding1@xiaomi.com>
|
2022-08-02 16:44:59 +08:00
|
|
|
---
|
|
|
|
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
|
2022-11-05 22:16:58 +08:00
|
|
|
index 4960aa8a..1f6ce593 100644
|
2022-08-02 16:44:59 +08:00
|
|
|
--- a/lib/rpmsg/rpmsg_virtio.c
|
|
|
|
+++ open-amp/lib/rpmsg/rpmsg_virtio.c
|
2022-11-05 22:16:58 +08:00
|
|
|
@@ -356,11 +356,6 @@ static void *rpmsg_virtio_get_tx_payload_buffer(struct rpmsg_device *rdev,
|
2022-08-02 16:44:59 +08:00
|
|
|
/* 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
|
|
|
|
|