From: Osier Yang Date: Tue, 23 Aug 2011 07:04:00 +0000 (+0800) Subject: conf: Cleanup improper use of VIR_ERR_NO_SUPPORT in node_device_conf X-Git-Tag: v0.9.5-rc1~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49218c59b2e48b077aedefc06facd754edae9879;p=thirdparty%2Flibvirt.git conf: Cleanup improper use of VIR_ERR_NO_SUPPORT in node_device_conf --- diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 548bbffef6..4803e2a256 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -1277,7 +1277,7 @@ virNodeDeviceGetWWNs(virNodeDeviceDefPtr def, } if (cap == NULL) { - virNodeDeviceReportError(VIR_ERR_NO_SUPPORT, + virNodeDeviceReportError(VIR_ERR_OPERATION_INVALID, "%s", _("Device is not a fibre channel HBA")); ret = -1; } else if (*wwnn == NULL || *wwpn == NULL) {