Skip to content

Commit 992648f

Browse files
Jiri Pirkomstsirkin
authored andcommitted
virtio: call virtio_find_vqs_info() from virtio_find_single_vq() directly
Since there are no more implementations of find_vqs() op, call virtio_find_vqs_info() from virtio_find_single_vq() directly. Signed-off-by: Jiri Pirko <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 3c93b57 commit 992648f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/linux/virtio_config.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,11 @@ static inline
283283
struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev,
284284
vq_callback_t *c, const char *n)
285285
{
286-
vq_callback_t *callbacks[] = { c };
287-
const char *names[] = { n };
286+
struct virtqueue_info vqs_info[] = {
287+
{ n, c },
288+
};
288289
struct virtqueue *vq;
289-
int err = virtio_find_vqs(vdev, 1, &vq, callbacks, names, NULL);
290+
int err = virtio_find_vqs_info(vdev, 1, &vq, vqs_info, NULL);
290291

291292
if (err < 0)
292293
return ERR_PTR(err);

0 commit comments

Comments
 (0)