]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Cleanup improper use of VIR_ERR_NO_SUPPORT in node_device_conf
authorOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 07:04:00 +0000 (15:04 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 07:04:00 +0000 (15:04 +0800)
src/conf/node_device_conf.c

index 548bbffef62b06ed67668036a36be4c71e2b8e88..4803e2a256a6c6647d95036ebac3307bfe9e8f09 100644 (file)
@@ -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) {