[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220811135353.2549658-2-eperezma@redhat.com>
Date: Thu, 11 Aug 2022 15:53:51 +0200
From: Eugenio Pérez <eperezma@...hat.com>
To: virtualization@...ts.linux-foundation.org,
Jason Wang <jasowang@...hat.com>,
"Michael S. Tsirkin" <mst@...hat.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Cc: ecree.xilinx@...il.com, gautam.dawar@....com,
Zhang Min <zhang.min9@....com.cn>, pabloc@...inx.com,
Piotr.Uminski@...el.com, Dan Carpenter <dan.carpenter@...cle.com>,
tanuj.kamde@....com, Zhu Lingshan <lingshan.zhu@...el.com>,
martinh@...inx.com,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
lvivier@...hat.com, martinpo@...inx.com, hanand@...inx.com,
Eli Cohen <elic@...dia.com>, lulu@...hat.com,
habetsm.xilinx@...il.com, Parav Pandit <parav@...dia.com>,
Longpeng <longpeng2@...wei.com>,
Wu Zongyong <wuzongyong@...ux.alibaba.com>,
Si-Wei Liu <si-wei.liu@...cle.com>,
Stefano Garzarella <sgarzare@...hat.com>, dinang@...inx.com,
Xie Yongji <xieyongji@...edance.com>
Subject: [PATCH v8 1/3] vdpa: delete unreachable branch on vdpasim_suspend
It was a leftover from previous versions.
Signed-off-by: Eugenio Pérez <eperezma@...hat.com>
---
drivers/vdpa/vdpa_sim/vdpa_sim.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c
index 213883487f9b..79a50edf8998 100644
--- a/drivers/vdpa/vdpa_sim/vdpa_sim.c
+++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c
@@ -509,16 +509,9 @@ static int vdpasim_reset(struct vdpa_device *vdpa)
static int vdpasim_suspend(struct vdpa_device *vdpa)
{
struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
- int i;
spin_lock(&vdpasim->lock);
vdpasim->running = false;
- if (vdpasim->running) {
- /* Check for missed buffers */
- for (i = 0; i < vdpasim->dev_attr.nvqs; ++i)
- vdpasim_kick_vq(vdpa, i);
-
- }
spin_unlock(&vdpasim->lock);
return 0;
--
2.31.1
Powered by blists - more mailing lists