[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220520070740.7151-1-liubo03@inspur.com>
Date: Fri, 20 May 2022 03:07:40 -0400
From: Bo Liu <liubo03@...pur.com>
To: <mst@...hat.com>, <jasowang@...hat.com>
CC: <virtualization@...ts.linux-foundation.org>,
<linux-kernel@...r.kernel.org>, Bo Liu <liubo03@...pur.com>
Subject: [PATCH] virtio_ring: remove unused variable in virtqueue_add()
The parameter vq in virtqueue_add() is useless, so remove it.
Signed-off-by: Bo Liu <liubo03@...pur.com>
---
drivers/virtio/virtio_ring.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index cfb028ca238e..7368e4394069 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -1782,8 +1782,6 @@ static inline int virtqueue_add(struct virtqueue *_vq,
void *ctx,
gfp_t gfp)
{
- struct vring_virtqueue *vq = to_vvq(_vq);
-
return vq->packed_ring ? virtqueue_add_packed(_vq, sgs, total_sg,
out_sgs, in_sgs, data, ctx, gfp) :
virtqueue_add_split(_vq, sgs, total_sg,
--
2.27.0
Powered by blists - more mailing lists