Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 2723feaa8ec6 ("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>

authored by

Stefano Garzarella and committed by
Michael S. Tsirkin
4c809363 e7c552ec

+2 -2
+2 -2
drivers/vhost/vhost.c
··· 1986 1986 return 0; 1987 1987 } 1988 1988 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) 1990 1990 { 1991 1991 if (vhost_put_avail_event(vq)) 1992 1992 return -EFAULT; ··· 2532 2532 return false; 2533 2533 } 2534 2534 } else { 2535 - r = vhost_update_avail_event(vq, vq->avail_idx); 2535 + r = vhost_update_avail_event(vq); 2536 2536 if (r) { 2537 2537 vq_err(vq, "Failed to update avail event index at %p: %d\n", 2538 2538 vhost_avail_event(vq), r);