aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>2023-08-10 20:30:47 +0800
committerMichael S. Tsirkin <mst@redhat.com>2023-09-03 18:10:22 -0400
commit0e27fa6ddeb0e070398692e369ce52fa91f9442d (patch)
treebfba47a872b64f84ff1235ebe1602e2e01f4274f /scripts/generate_rust_analyzer.py
parentvirtio_ring: check use_dma_api before unmap desc for indirect (diff)
downloadlinux-rng-0e27fa6ddeb0e070398692e369ce52fa91f9442d.tar.xz
linux-rng-0e27fa6ddeb0e070398692e369ce52fa91f9442d.zip
virtio_ring: put mapping error check in vring_map_one_sg
This patch put the dma addr error check in vring_map_one_sg(). The benefits of doing this: 1. reduce one judgment of vq->use_dma_api. 2. make vring_map_one_sg more simple, without calling vring_mapping_error to check the return value. simplifies subsequent code Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230810123057.43407-3-xuanzhuo@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions