Skip to content

Commit 4c80936

Browse files
stefano-garzarellamstsirkin
authored andcommitted
vhost: remove avail_event arg from vhost_update_avail_event()
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent e7c552e commit 4c80936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/vhost/vhost.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@ static int vhost_update_used_flags(struct vhost_virtqueue *vq)
19861986
return 0;
19871987
}
19881988

1989-
static int vhost_update_avail_event(struct vhost_virtqueue *vq, u16 avail_event)
1989+
static int vhost_update_avail_event(struct vhost_virtqueue *vq)
19901990
{
19911991
if (vhost_put_avail_event(vq))
19921992
return -EFAULT;
@@ -2532,7 +2532,7 @@ bool vhost_enable_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq)
25322532
return false;
25332533
}
25342534
} else {
2535-
r = vhost_update_avail_event(vq, vq->avail_idx);
2535+
r = vhost_update_avail_event(vq);
25362536
if (r) {
25372537
vq_err(vq, "Failed to update avail event index at %p: %d\n",
25382538
vhost_avail_event(vq), r);

0 commit comments

Comments
 (0)