From: Daniel P. Berrangé Date: Tue, 7 May 2024 13:35:39 +0000 (+0100) Subject: src/node_device: don't overwrite error messages X-Git-Tag: v10.4.0-rc1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a47e73d6e76c85b0897e3cccaf0a58ed3c367664;p=thirdparty%2Flibvirt.git src/node_device: don't overwrite error messages The nodedev code unhelpfully reports couldn't convert node device def to mdevctl JSON which hides the actual error message No JSON parser implementation is available Reviewed-by: Peter Krempa Signed-off-by: Daniel P. Berrangé --- diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c index d99b48138e..700776c90c 100644 --- a/src/node_device/node_device_driver.c +++ b/src/node_device/node_device_driver.c @@ -774,8 +774,6 @@ nodeDeviceGetMdevctlCommand(virNodeDeviceDef *def, } if (nodeDeviceDefToMdevctlConfig(def, &inbuf, true) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("couldn't convert node device def to mdevctl JSON")); return NULL; }