[RFC PATCH 09/17] virtio_pmem: Remove unused used length
From: Xie Yongji
Date: Mon May 17 2021 - 05:12:12 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/nvdimm/nd_virtio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/nvdimm/nd_virtio.c b/drivers/nvdimm/nd_virtio.c
index 10351d5b49fa..f57d7663b505 100644
--- a/drivers/nvdimm/nd_virtio.c
+++ b/drivers/nvdimm/nd_virtio.c
@@ -15,10 +15,9 @@ void virtio_pmem_host_ack(struct virtqueue *vq)
struct virtio_pmem *vpmem = vq->vdev->priv;
struct virtio_pmem_request *req_data, *req_buf;
unsigned long flags;
- unsigned int len;
spin_lock_irqsave(&vpmem->pmem_lock, flags);
- while ((req_data = virtqueue_get_buf(vq, &len)) != NULL) {
+ while ((req_data = virtqueue_get_buf(vq, NULL)) != NULL) {
req_data->done = true;
wake_up(&req_data->host_acked);
--
2.11.0