virtio_ring: remove flags check for unmap packed indirect desc
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Thu, 24 Feb 2022 11:03:56 +0000 (19:03 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Mar 2022 20:52:58 +0000 (16:52 -0400)
commit920379a465da775ae0bf84d44c16f5432b5be575
tree9c466c8e7ceca74ba2d48496bbc5e8c9682b4185
parentb4282ebc71aacfa69fc998173ca93b09235ce71f
virtio_ring: remove flags check for unmap packed indirect desc

When calling vring_unmap_desc_packed(), it will not encounter the
situation that the flags contains VRING_DESC_F_INDIRECT. So remove this
logic.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220224110402.108161-4-xuanzhuo@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c