]> xenbits.xensource.com Git - libvirt.git/commitdiff
vmware: Fix bogus CPU arch copy
authorJiri Denemark <jdenemar@redhat.com>
Sun, 21 Jul 2013 22:15:02 +0000 (00:15 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 22 Jul 2013 11:56:54 +0000 (13:56 +0200)
src/vmware/vmware_conf.c

index 773487273975f8369da66c2a20fe7615cb4e60f5..23da92deba02f81429913cac8505e5007f520285 100644 (file)
@@ -80,10 +80,7 @@ vmwareCapsInit(void)
     if (VIR_ALLOC(cpu) < 0)
         goto error;
 
-    if (!(cpu->arch = caps->host.arch)) {
-        virReportOOMError();
-        goto error;
-    }
+    cpu->arch = caps->host.arch;
     cpu->type = VIR_CPU_TYPE_HOST;
 
     if (!(data = cpuNodeData(cpu->arch))