[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 5/3] vmware: Fix bogus CPU arch copy



---
 src/vmware/vmware_conf.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/vmware/vmware_conf.c b/src/vmware/vmware_conf.c
index 7734872..23da92d 100644
--- a/src/vmware/vmware_conf.c
+++ b/src/vmware/vmware_conf.c
@@ -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))
-- 
1.8.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]