mirror of https://github.com/xemu-project/xemu.git
target/s390x/cpu_models_sysemu: Drop local @err in apply_cpu_model()
Use @errp to fetch error information directly and drop the local variable @err. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20240425031232.1586401-8-zhao1.liu@intel.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
38098df346
commit
046bf2a618
|
@ -389,7 +389,6 @@ CpuModelBaselineInfo *qmp_query_cpu_model_baseline(CpuModelInfo *infoa,
|
||||||
|
|
||||||
void apply_cpu_model(const S390CPUModel *model, Error **errp)
|
void apply_cpu_model(const S390CPUModel *model, Error **errp)
|
||||||
{
|
{
|
||||||
Error *err = NULL;
|
|
||||||
static S390CPUModel applied_model;
|
static S390CPUModel applied_model;
|
||||||
static bool applied;
|
static bool applied;
|
||||||
|
|
||||||
|
@ -405,8 +404,7 @@ void apply_cpu_model(const S390CPUModel *model, Error **errp)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kvm_enabled()) {
|
if (kvm_enabled()) {
|
||||||
if (!kvm_s390_apply_cpu_model(model, &err)) {
|
if (!kvm_s390_apply_cpu_model(model, errp)) {
|
||||||
error_propagate(errp, err);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue