virtio: make virtio_delete_queue idempotent
commit8cd353ea0fbf0e334e015d833f612799be642296
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 9 Dec 2019 16:47:24 +0000 (9 11:47 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Jan 2020 12:03:03 +0000 (5 07:03 -0500)
treeef864fb7e140ebc8693b77ec07f74c35d01e2303
parent722f8c51d8af223751dfb1d02de40043e8ba067e
virtio: make virtio_delete_queue idempotent

Let's make sure calling this twice is harmless -
no known instances, but seems safer.

Suggested-by: Pan Nengyuan <pannengyuan@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c