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

When calling vring_unmap_one_split_indirect(), 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-3-xuanzhuo@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c