qemu: remove extraneous error log when qemuPasstStart() fails during hotplug

qemuPasstStart() already logs any error that occurs, so having the
caller log a generic error message only serves to obscure the actual
problem.

Fixes: a56f0168d5
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Laine Stump 2023-02-21 01:09:04 -05:00
parent dffc40db69
commit 771992363e

View File

@ -1205,11 +1205,8 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
case VIR_DOMAIN_NET_TYPE_USER:
if (net->backend.type == VIR_DOMAIN_NET_BACKEND_PASST) {
if (qemuPasstStart(vm, net) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("Failed to start passt"));
if (qemuPasstStart(vm, net) < 0)
goto cleanup;
}
} else if (!priv->disableSlirp &&
virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DBUS_VMSTATE)) {