[libvirt] [PATCH 3/3] qemu: address: Stop reporting warning when USB address can't be released

Peter Krempa posted 3 patches 6 years, 10 months ago
[libvirt] [PATCH 3/3] qemu: address: Stop reporting warning when USB address can't be released
Posted by Peter Krempa 6 years, 10 months ago
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 <pkrempa@redhat.com>
---
 src/qemu/qemu_domain_address.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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);
 }


-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list