From: Michal Privoznik Date: Mon, 7 Nov 2022 13:53:59 +0000 (+0100) Subject: qemu: Drop misleading comment for qemuDomainQueryWakeupSuspendSupport() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8d175cbe64d22b47bab315a773f39cb67a416ef0;p=libvirt.git qemu: Drop misleading comment for qemuDomainQueryWakeupSuspendSupport() The was an attempt to document the retvals for qemuDomainQueryWakeupSuspendSupport(). However, it's misleading because in reality, the function can return nothing but 0 or -1, but the comment implies retval of 1 too. Since the set of possible return values complies with our unwritten rule (0 for success, -1 for error), there's no real value in having the comment and as such can be dropped. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 59a3b37b98..7c8fc8949c 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -16313,7 +16313,6 @@ qemuDomainProbeQMPCurrentMachine(virDomainObj *vm, } -/* returns -1 on error, or if query is not supported, 0 if query was successful */ static int qemuDomainQueryWakeupSuspendSupport(virDomainObj *vm, bool *wakeupSupported)