aboutsummaryrefslogtreecommitdiff
path: root/qemu-edid.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2023-11-21 16:44:02 +0800
committerCédric Le Goater <clg@redhat.com>2023-12-19 19:03:38 +0100
commit1eae5b7bd3ddd03b5591e9122b011c6520064a5a (patch)
tree992edd3a2ea9eba4bd0efaf5c77a198a8d840787 /qemu-edid.c
parentd6b5c4c1b516a8176b74ec35a0af8cf89b04b6c1 (diff)
downloadqemu-1eae5b7bd3ddd03b5591e9122b011c6520064a5a.zip
qemu-1eae5b7bd3ddd03b5591e9122b011c6520064a5a.tar.gz
qemu-1eae5b7bd3ddd03b5591e9122b011c6520064a5a.tar.bz2
vfio/common: return early if space isn't empty
This is a trivial optimization. If there is active container in space, vfio_reset_handler will never be unregistered. So revert the check of space->containers and return early. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'qemu-edid.c')
0 files changed, 0 insertions, 0 deletions