[RFC PATCH 11/17] virtio_scsi: Remove unused used length
From: Xie Yongji
Date: Mon May 17 2021 - 05:12:20 EST
The used length is not used. Let's drop it and
pass NULL to virtqueue_get_buf() instead.
Signed-off-by: Xie Yongji <xieyongji@xxxxxxxxxxxxx>
---
drivers/scsi/virtio_scsi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index b9c86a7e3b97..0ebf23ec844b 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -173,14 +173,13 @@ static void virtscsi_vq_done(struct virtio_scsi *vscsi,
void (*fn)(struct virtio_scsi *vscsi, void *buf))
{
void *buf;
- unsigned int len;
unsigned long flags;
struct virtqueue *vq = virtscsi_vq->vq;
spin_lock_irqsave(&virtscsi_vq->vq_lock, flags);
do {
virtqueue_disable_cb(vq);
- while ((buf = virtqueue_get_buf(vq, &len)) != NULL)
+ while ((buf = virtqueue_get_buf(vq, NULL)) != NULL)
fn(vscsi, buf);
if (unlikely(virtqueue_is_broken(vq)))
--
2.11.0