Skip to content

Commit

Permalink
vhost: remove avail_event arg from vhost_update_avail_event()
Browse files Browse the repository at this point in the history
In vhost_update_avail_event() we never used the `avail_event` argument,
since its introduction in commit 2723fea ("vhost: set log when
updating used flags or avail event").

Let's remove it to clean up the code.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20220113141134.186773-1-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Stefano Garzarella authored and Michael S. Tsirkin committed Mar 6, 2022
1 parent e7c552e commit 4c80936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ static int vhost_update_used_flags(struct vhost_virtqueue *vq)
return 0;
}

static int vhost_update_avail_event(struct vhost_virtqueue *vq, u16 avail_event)
static int vhost_update_avail_event(struct vhost_virtqueue *vq)
{
if (vhost_put_avail_event(vq))
return -EFAULT;
Expand Down Expand Up @@ -2532,7 +2532,7 @@ bool vhost_enable_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq)
return false;
}
} else {
r = vhost_update_avail_event(vq, vq->avail_idx);
r = vhost_update_avail_event(vq);
if (r) {
vq_err(vq, "Failed to update avail event index at %p: %d\n",
vhost_avail_event(vq), r);
Expand Down

0 comments on commit 4c80936

Please sign in to comment.