]> xenbits.xensource.com Git - libvirt.git/commit
qemu: snapshot: Remove dead code in 'qemuSnapshotDeleteBlockJobRunning'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Oct 2024 06:09:06 +0000 (08:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 14 Oct 2024 14:25:21 +0000 (16:25 +0200)
commite2c6f4c80016719b081fc26a30613b54cda56443
treea9be6d1bf54b2e7237f13fde14f0cb33689496e7
parent2e29ab3269701535f71cf56cc51165e7eeb1e49f
qemu: snapshot: Remove dead code in 'qemuSnapshotDeleteBlockJobRunning'

'qemuSnapshotDeleteBlockJobIsRunning' returns only 0 and 1. Convert it
to bool and remove the dead code handling -1 return in the caller.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/682
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_snapshot.c