Indent top-level labels by one space in src/cpu/

This commit is contained in:
Ján Tomko 2014-03-25 07:50:40 +01:00
parent df2013fad0
commit dc7238f518
5 changed files with 45 additions and 45 deletions

View File

@ -103,7 +103,7 @@ cpuCompareXML(virCPUDefPtr host,
ret = cpuCompare(host, cpu); ret = cpuCompare(host, cpu);
cleanup: cleanup:
virCPUDefFree(cpu); virCPUDefFree(cpu);
xmlXPathFreeContext(ctxt); xmlXPathFreeContext(ctxt);
xmlFreeDoc(doc); xmlFreeDoc(doc);
@ -335,7 +335,7 @@ cpuBaselineXML(const char **xmlCPUs,
cpustr = virCPUDefFormat(cpu, 0); cpustr = virCPUDefFormat(cpu, 0);
cleanup: cleanup:
if (cpus) { if (cpus) {
for (i = 0; i < ncpus; i++) for (i = 0; i < ncpus; i++)
virCPUDefFree(cpus[i]); virCPUDefFree(cpus[i]);
@ -347,7 +347,7 @@ cleanup:
return cpustr; return cpustr;
error: error:
cpustr = NULL; cpustr = NULL;
goto cleanup; goto cleanup;
} }
@ -577,7 +577,7 @@ cpuGetModels(const char *archName, char ***models)
return data.len - 1; return data.len - 1;
error: error:
virStringFreeList(data.data); virStringFreeList(data.data);
return -1; return -1;
} }

View File

@ -103,7 +103,7 @@ genericCompare(virCPUDefPtr host,
else else
ret = VIR_CPU_COMPARE_IDENTICAL; ret = VIR_CPU_COMPARE_IDENTICAL;
cleanup: cleanup:
virHashFree(hash); virHashFree(hash);
return ret; return ret;
} }
@ -188,12 +188,12 @@ genericBaseline(virCPUDefPtr *cpus,
goto error; goto error;
} }
cleanup: cleanup:
VIR_FREE(features); VIR_FREE(features);
return cpu; return cpu;
error: error:
virCPUDefFree(cpu); virCPUDefFree(cpu);
cpu = NULL; cpu = NULL;
goto cleanup; goto cleanup;

View File

@ -70,7 +70,7 @@ static int load(xmlXPathContextPtr ctxt,
ret = 0; ret = 0;
cleanup: cleanup:
ctxt->node = ctxt_node; ctxt->node = ctxt_node;
return ret; return ret;
@ -137,14 +137,14 @@ int cpuMapLoad(const char *arch,
ret = 0; ret = 0;
cleanup: cleanup:
xmlXPathFreeContext(ctxt); xmlXPathFreeContext(ctxt);
xmlFreeDoc(xml); xmlFreeDoc(xml);
VIR_FREE(xpath); VIR_FREE(xpath);
return ret; return ret;
no_memory: no_memory:
virReportOOMError(); virReportOOMError();
goto cleanup; goto cleanup;
} }

View File

@ -163,7 +163,7 @@ ppcModelFromCPU(const virCPUDef *cpu,
return model; return model;
error: error:
ppcModelFree(model); ppcModelFree(model);
return NULL; return NULL;
} }
@ -198,10 +198,10 @@ ppcVendorLoad(xmlXPathContextPtr ctxt,
map->vendors = vendor; map->vendors = vendor;
} }
cleanup: cleanup:
return 0; return 0;
ignore: ignore:
ppcVendorFree(vendor); ppcVendorFree(vendor);
goto cleanup; goto cleanup;
} }
@ -263,11 +263,11 @@ ppcModelLoad(xmlXPathContextPtr ctxt,
map->models = model; map->models = model;
} }
cleanup: cleanup:
VIR_FREE(vendor); VIR_FREE(vendor);
return 0; return 0;
ignore: ignore:
ppcModelFree(model); ppcModelFree(model);
goto cleanup; goto cleanup;
} }
@ -326,7 +326,7 @@ ppcLoadMap(void)
return map; return map;
error: error:
ppcMapFree(map); ppcMapFree(map);
return NULL; return NULL;
} }
@ -431,7 +431,7 @@ ppcCompute(virCPUDefPtr host,
ret = VIR_CPU_COMPARE_IDENTICAL; ret = VIR_CPU_COMPARE_IDENTICAL;
cleanup: cleanup:
ppcMapFree(map); ppcMapFree(map);
ppcModelFree(host_model); ppcModelFree(host_model);
ppcModelFree(guest_model); ppcModelFree(guest_model);
@ -487,7 +487,7 @@ ppcDecode(virCPUDefPtr cpu,
ret = 0; ret = 0;
cleanup: cleanup:
ppcMapFree(map); ppcMapFree(map);
return ret; return ret;
@ -632,12 +632,12 @@ ppcBaseline(virCPUDefPtr *cpus,
cpu->type = VIR_CPU_TYPE_GUEST; cpu->type = VIR_CPU_TYPE_GUEST;
cpu->match = VIR_CPU_MATCH_EXACT; cpu->match = VIR_CPU_MATCH_EXACT;
cleanup: cleanup:
ppcMapFree(map); ppcMapFree(map);
return cpu; return cpu;
error: error:
virCPUDefFree(cpu); virCPUDefFree(cpu);
cpu = NULL; cpu = NULL;
goto cleanup; goto cleanup;

View File

@ -459,12 +459,12 @@ x86DataToCPU(const virCPUx86Data *data,
x86DataToCPUFeatures(cpu, VIR_CPU_FEATURE_DISABLE, modelData, map)) x86DataToCPUFeatures(cpu, VIR_CPU_FEATURE_DISABLE, modelData, map))
goto error; goto error;
cleanup: cleanup:
virCPUx86DataFree(modelData); virCPUx86DataFree(modelData);
virCPUx86DataFree(copy); virCPUx86DataFree(copy);
return cpu; return cpu;
error: error:
virCPUDefFree(cpu); virCPUDefFree(cpu);
cpu = NULL; cpu = NULL;
goto cleanup; goto cleanup;
@ -549,14 +549,14 @@ x86VendorLoad(xmlXPathContextPtr ctxt,
map->vendors = vendor; map->vendors = vendor;
} }
out: out:
VIR_FREE(string); VIR_FREE(string);
return ret; return ret;
error: error:
ret = -1; ret = -1;
ignore: ignore:
x86VendorFree(vendor); x86VendorFree(vendor);
goto out; goto out;
} }
@ -717,16 +717,16 @@ x86FeatureLoad(xmlXPathContextPtr ctxt,
map->features = feature; map->features = feature;
} }
out: out:
ctxt->node = ctxt_node; ctxt->node = ctxt_node;
VIR_FREE(nodes); VIR_FREE(nodes);
return ret; return ret;
error: error:
ret = -1; ret = -1;
ignore: ignore:
x86FeatureFree(feature); x86FeatureFree(feature);
goto out; goto out;
} }
@ -756,7 +756,7 @@ x86DataFromCPUFeatures(virCPUDefPtr cpu,
return data; return data;
error: error:
virCPUx86DataFree(data); virCPUx86DataFree(data);
return NULL; return NULL;
} }
@ -869,7 +869,7 @@ x86ModelFromCPU(const virCPUDef *cpu,
return model; return model;
error: error:
x86ModelFree(model); x86ModelFree(model);
return NULL; return NULL;
} }
@ -1055,15 +1055,15 @@ x86ModelLoad(xmlXPathContextPtr ctxt,
map->models = model; map->models = model;
} }
out: out:
VIR_FREE(vendor); VIR_FREE(vendor);
VIR_FREE(nodes); VIR_FREE(nodes);
return ret; return ret;
error: error:
ret = -1; ret = -1;
ignore: ignore:
x86ModelFree(model); x86ModelFree(model);
goto out; goto out;
} }
@ -1155,7 +1155,7 @@ x86MapLoadInternalFeatures(struct x86_map *map)
return 0; return 0;
error: error:
x86FeatureFree(feature); x86FeatureFree(feature);
return -1; return -1;
} }
@ -1177,7 +1177,7 @@ virCPUx86LoadMap(void)
return map; return map;
error: error:
x86MapFree(map); x86MapFree(map);
return NULL; return NULL;
} }
@ -1273,7 +1273,7 @@ x86CPUDataParse(const char *xmlStr)
cpuData = virCPUx86MakeData(VIR_ARCH_X86_64, &data); cpuData = virCPUx86MakeData(VIR_ARCH_X86_64, &data);
cleanup: cleanup:
VIR_FREE(nodes); VIR_FREE(nodes);
xmlXPathFreeContext(ctxt); xmlXPathFreeContext(ctxt);
xmlFreeDoc(xml); xmlFreeDoc(xml);
@ -1442,7 +1442,7 @@ x86Compute(virCPUDefPtr host,
} }
} }
cleanup: cleanup:
x86ModelFree(host_model); x86ModelFree(host_model);
x86ModelFree(diff); x86ModelFree(diff);
x86ModelFree(cpu_force); x86ModelFree(cpu_force);
@ -1454,7 +1454,7 @@ cleanup:
return ret; return ret;
error: error:
ret = VIR_CPU_COMPARE_ERROR; ret = VIR_CPU_COMPARE_ERROR;
goto cleanup; goto cleanup;
} }
@ -1593,7 +1593,7 @@ x86Decode(virCPUDefPtr cpu,
ret = 0; ret = 0;
out: out:
virCPUDefFree(cpuModel); virCPUDefFree(cpuModel);
virCPUx86DataFree(copy); virCPUx86DataFree(copy);
virCPUx86DataFree(features); virCPUx86DataFree(features);
@ -1732,7 +1732,7 @@ x86Encode(virArch arch,
return 0; return 0;
error: error:
virCPUx86DataFree(data_forced); virCPUx86DataFree(data_forced);
virCPUx86DataFree(data_required); virCPUx86DataFree(data_required);
virCPUx86DataFree(data_optional); virCPUx86DataFree(data_optional);
@ -1831,7 +1831,7 @@ x86NodeData(virArch arch)
return cpuData; return cpuData;
error: error:
virCPUx86DataFree(data); virCPUx86DataFree(data);
return NULL; return NULL;
@ -1948,12 +1948,12 @@ x86Baseline(virCPUDefPtr *cpus,
cpu->arch = VIR_ARCH_NONE; cpu->arch = VIR_ARCH_NONE;
cleanup: cleanup:
x86ModelFree(base_model); x86ModelFree(base_model);
return cpu; return cpu;
error: error:
x86ModelFree(model); x86ModelFree(model);
virCPUDefFree(cpu); virCPUDefFree(cpu);
cpu = NULL; cpu = NULL;
@ -2001,7 +2001,7 @@ x86UpdateCustom(virCPUDefPtr guest,
ret = 0; ret = 0;
cleanup: cleanup:
x86ModelFree(host_model); x86ModelFree(host_model);
return ret; return ret;
} }
@ -2083,7 +2083,7 @@ x86HasFeature(const virCPUData *data,
ret = x86DataIsSubset(data->data.x86, feature->data) ? 1 : 0; ret = x86DataIsSubset(data->data.x86, feature->data) ? 1 : 0;
cleanup: cleanup:
return ret; return ret;
} }