Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Matt Coleman <matt@datto.com>
/* Get the typeinfo out of the class info list */
if (hypervGetWmiClassInfo(priv, info, &classInfo) < 0)
- goto error;
+ return NULL;
typeinfo = classInfo->serializerInfo;
table = virHashCreate(count, NULL);
if (table == NULL)
- goto error;
+ return NULL;
for (i = 0; typeinfo[i].name != NULL; i++) {
item = &typeinfo[i];
if (virHashAddEntry(table, item->name, NULL) < 0)
- goto error;
+ return NULL;
}
return g_steal_pointer(&table);
-
- error:
- return NULL;
}