mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 02:45:22 +00:00
qemu: Remove unnecessary virReportError on networkGetNetworkAddress return
Error messages are already set in all code paths returning -1 from networkGetNetworkAddress, so we don't want to overwrite them. Signed-off-by: Luyao Huang <lhuang@redhat.com> Signed-off-by: John Ferlan <jferlan@redhat.com> (cherry picked from commit 64595431cdf57f0a23351e8808f7c3c18e855f9f)
This commit is contained in:
parent
55576d3512
commit
5f3db97168
@ -7294,12 +7294,9 @@ qemuBuildGraphicsVNCCommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
"network driver not present"));
|
"network driver not present"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
virReportError(VIR_ERR_XML_ERROR,
|
|
||||||
_("listen network '%s' had no usable address"),
|
|
||||||
listenNetwork);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
|
||||||
listenAddr = netAddr;
|
listenAddr = netAddr;
|
||||||
/* store the address we found in the <graphics> element so it will
|
/* store the address we found in the <graphics> element so it will
|
||||||
* show up in status. */
|
* show up in status. */
|
||||||
@ -7458,12 +7455,9 @@ qemuBuildGraphicsSPICECommandLine(virQEMUDriverConfigPtr cfg,
|
|||||||
"network driver not present"));
|
"network driver not present"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
virReportError(VIR_ERR_XML_ERROR,
|
|
||||||
_("listen network '%s' had no usable address"),
|
|
||||||
listenNetwork);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
|
||||||
listenAddr = netAddr;
|
listenAddr = netAddr;
|
||||||
/* store the address we found in the <graphics> element so it will
|
/* store the address we found in the <graphics> element so it will
|
||||||
* show up in status. */
|
* show up in status. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user