Skip to content

Commit

Permalink
drivers/vhost: fix compile error while get vhost status.
Browse files Browse the repository at this point in the history
vhost/vhost.c: In function 'vhost_status_driver_ok':
vhost/vhost.c:86:20: error: too few arguments to function 'virtio_get_status'
   86 |   uint8_t status = vhost_get_status(hdev);

Signed-off-by: rongyichang <[email protected]>
  • Loading branch information
terry0012 committed Jan 11, 2025
1 parent e5e9032 commit f80a9be
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,15 @@ static struct vhost_bus_s g_vhost_bus =

static bool vhost_status_driver_ok(FAR struct vhost_device *hdev)
{
uint8_t status = vhost_get_status(hdev);
bool driver_ok = false;
uint8_t status;
int ret;

ret = vhost_get_status(hdev, &status);
if (ret)
{
return driver_ok;
}

/* Busy wait until the remote is ready */

Expand Down

0 comments on commit f80a9be

Please sign in to comment.