mirror of https://gitee.com/openkylin/libvirt.git
virCPUx86DataParse: Don't check error from x86FeatureNames
x86FeatureNames uses virBuffer and thus can't fail nowadays. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
e3a792a39b
commit
542b2b2914
|
@ -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); \
|
||||
|
|
Loading…
Reference in New Issue