Jason Wang
2022-Aug-19 00:55 UTC
[PATCH v8 1/3] vdpa: delete unreachable branch on vdpasim_suspend
On Thu, Aug 11, 2022 at 9:54 PM Eugenio P?rez <eperezma at redhat.com> wrote:> > It was a leftover from previous versions. > > Signed-off-by: Eugenio P?rez <eperezma at redhat.com>Acked-by: Jason Wang <jasowang at redhat.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 >