mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
Drop more @errp parameters after previous commit
Several functions can't fail anymore: ich9_pm_add_properties(), device_add_bootindex_property(), ppc_compat_add_property(), spapr_caps_add_properties(), PropertyInfo.create(). Drop their @errp parameter. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200505152926.18877-16-armbru@redhat.com>
This commit is contained in:
parent
d2623129a7
commit
40c2281cc3
39 changed files with 41 additions and 44 deletions
|
@ -3316,8 +3316,7 @@ static void spapr_instance_init(Object *obj)
|
|||
" place of standard EPOW events when possible"
|
||||
" (required for memory hot-unplug support)");
|
||||
ppc_compat_add_property(obj, "max-cpu-compat", &spapr->max_compat_pvr,
|
||||
"Maximum permitted CPU compatibility mode",
|
||||
&error_fatal);
|
||||
"Maximum permitted CPU compatibility mode");
|
||||
|
||||
object_property_add_str(obj, "resize-hpt",
|
||||
spapr_get_resize_hpt, spapr_set_resize_hpt);
|
||||
|
@ -4525,7 +4524,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)
|
|||
smc->default_caps.caps[SPAPR_CAP_LARGE_DECREMENTER] = SPAPR_CAP_ON;
|
||||
smc->default_caps.caps[SPAPR_CAP_CCF_ASSIST] = SPAPR_CAP_ON;
|
||||
smc->default_caps.caps[SPAPR_CAP_FWNMI] = SPAPR_CAP_ON;
|
||||
spapr_caps_add_properties(smc, &error_abort);
|
||||
spapr_caps_add_properties(smc);
|
||||
smc->irq = &spapr_irq_dual;
|
||||
smc->dr_phb_enabled = true;
|
||||
smc->linux_pci_probe = true;
|
||||
|
|
|
@ -824,7 +824,7 @@ void spapr_caps_cpu_apply(SpaprMachineState *spapr, PowerPCCPU *cpu)
|
|||
}
|
||||
}
|
||||
|
||||
void spapr_caps_add_properties(SpaprMachineClass *smc, Error **errp)
|
||||
void spapr_caps_add_properties(SpaprMachineClass *smc)
|
||||
{
|
||||
ObjectClass *klass = OBJECT_CLASS(smc);
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue