]> xenbits.xensource.com Git - libvirt.git/commit
qemu: migration: Avoid use of 'nmigration_disks'
authorPeter Krempa <pkrempa@redhat.com>
Fri, 27 Sep 2024 11:56:06 +0000 (13:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Oct 2024 10:57:02 +0000 (12:57 +0200)
commit4ebf1acb83161bf567c37f7c972f408b24cf8784
tree7ff7ea2cabffd17bcd8b236699618f4422a56e24
parentd98beef107d411f9b689be288695131680cfa87a
qemu: migration: Avoid use of 'nmigration_disks'

'migration_disks' is a NULL-terminated string list, so the code can be
converted to either iterate the string-list, use existing accessors or
check the presence of the pointers instead of checking the count.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_migration.c