]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virCPUx86DataParse: Don't check error from x86FeatureNames
authorPeter Krempa <pkrempa@redhat.com>
Tue, 23 Feb 2021 07:42:13 +0000 (08:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Mar 2021 08:50:19 +0000 (09:50 +0100)
x86FeatureNames uses virBuffer and thus can't fail nowadays.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/cpu/cpu_x86.c

index 92f945beb4e4ab3264b3d50475808f1d08dd0e32..79c5868ae662d6675b1c83f117f508cda653ad1e 100644 (file)
@@ -1856,11 +1856,7 @@ virCPUx86DataParse(xmlXPathContextPtr ctxt)
  */
 #define virX86CpuIncompatible(MSG, CPU_DEF) \
         do { \
-            g_autofree char *flagsStr = NULL; \
-            if (!(flagsStr = x86FeatureNames(map, ", ", (CPU_DEF)))) { \
-                virReportOOMError(); \
-                return VIR_CPU_COMPARE_ERROR; \
-            } \
+            g_autofree char *flagsStr = x86FeatureNames(map, ", ", (CPU_DEF)); \
             if (message) \
                 *message = g_strdup_printf("%s: %s", _(MSG), flagsStr); \
             VIR_DEBUG("%s: %s", MSG, flagsStr); \