Skip to content

Commit

Permalink
rpmsg: fix rpmsg_virtio_get_tx_payload_buffer error
Browse files Browse the repository at this point in the history
If rpmsg_virtio_notify_wait returns RPMSG_SUCCESS, we don't call
rpmsg_virtio_get_tx_buffer.

Signed-off-by: Yongrong Wang <[email protected]>
Signed-off-by: Bowen Wang <[email protected]>
  • Loading branch information
wyr-7 committed Oct 21, 2024
1 parent c468328 commit 938bc55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rpmsg/rpmsg_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,8 @@ static void *rpmsg_virtio_get_tx_payload_buffer(struct rpmsg_device *rdev,
if (status == RPMSG_EOPNOTSUPP) {
metal_sleep_usec(RPMSG_TICKS_PER_INTERVAL);
tick_count--;
} else if (status == RPMSG_SUCCESS) {
} else if (status != RPMSG_SUCCESS)
break;
}
}

if (!rp_hdr)
Expand Down

0 comments on commit 938bc55

Please sign in to comment.