mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] virtio_ring: remove unused variable in virtqueue_add()
@ 2022-05-20  7:07 Bo Liu
  2022-05-20 14:12 ` kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: Bo Liu @ 2022-05-20  7:07 UTC (permalink / raw)
  To: mst, jasowang; +Cc: virtualization, linux-kernel, Bo Liu

The parameter vq in virtqueue_add() is useless, so remove it.

Signed-off-by: Bo Liu <liubo03@inspur.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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-20 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20  7:07 [PATCH] virtio_ring: remove unused variable in virtqueue_add() Bo Liu
2022-05-20 14:12 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®