From: Peter Krempa Date: Thu, 28 Mar 2019 12:25:28 +0000 (+0100) Subject: qemu: address: Stop reporting warning when USB address can't be released X-Git-Tag: v5.2.0-rc2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54eb3e096b60e2231ed4e935c33772cf4da6acf8;p=thirdparty%2Flibvirt.git qemu: address: Stop reporting warning when USB address can't be released The warning is reported at a code path which already reports a proper error so it's pointless to add yet another line into logs. Signed-off-by: Peter Krempa --- diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c index f217d1599a..28e79af7b1 100644 --- a/src/qemu/qemu_domain_address.c +++ b/src/qemu/qemu_domain_address.c @@ -3264,8 +3264,7 @@ qemuDomainReleaseDeviceAddress(virDomainObjPtr vm, virDomainPCIAddressExtensionReleaseAddr(priv->pciaddrs, &info->addr.pci); } - if (virDomainUSBAddressRelease(priv->usbaddrs, info) < 0) - VIR_WARN("Unable to release USB address on %s", NULLSTR(info->alias)); + virDomainUSBAddressRelease(priv->usbaddrs, info); }