aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>2022-06-07 18:02:17 +0100
committerWill Deacon <will@kernel.org>2022-06-09 13:44:14 +0100
commit3a1e36e4bf499c5c98425f8a3f6c3df580404983 (patch)
treea9ab0e04bfd7448761ce58cd0d5a2bf69260381d
parent7efc2622d5eee02f2423c81109b49644f2181d71 (diff)
downloadkvmtool-3a1e36e4bf499c5c98425f8a3f6c3df580404983.tar.gz
virtio: Remove redundant test
Don't test for VIRTIO__STATUS_STOP right after setting it. Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Link: https://lore.kernel.org/r/20220607170239.120084-3-jean-philippe.brucker@arm.com Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--virtio/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/virtio/core.c b/virtio/core.c
index 90a661d1..40532664 100644
--- a/virtio/core.c
+++ b/virtio/core.c
@@ -247,8 +247,7 @@ void virtio_notify_status(struct kvm *kvm, struct virtio_device *vdev,
* Reset virtqueues and stop all traffic now, so that the device
* can safely reset the backend in notify_status().
*/
- if (ext_status & VIRTIO__STATUS_STOP)
- vdev->ops->reset(kvm, vdev);
+ vdev->ops->reset(kvm, vdev);
}
if (vdev->ops->notify_status)