]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationCookieAddNBD: Exit early if there are no disks
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Jan 2020 13:47:25 +0000 (14:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 31 Jan 2020 13:28:28 +0000 (14:28 +0100)
commitbdff9d4513694da8d9b2bb60a1f808fb1c286388
treee12b75d63d50b06b4b1f466ded3b2985d281ccb1
parent6eab924daa243afa67f2cc20dcbdf521904bb62b
qemuMigrationCookieAddNBD: Exit early if there are no disks

Refactor the logic to skip the body of the function if there's nothing
to do.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration_cookie.c