mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24: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
|
@ -2813,10 +2813,10 @@ static void isabus_fdc_instance_init(Object *obj)
|
|||
|
||||
device_add_bootindex_property(obj, &isa->bootindexA,
|
||||
"bootindexA", "/floppy@0",
|
||||
DEVICE(obj), NULL);
|
||||
DEVICE(obj));
|
||||
device_add_bootindex_property(obj, &isa->bootindexB,
|
||||
"bootindexB", "/floppy@1",
|
||||
DEVICE(obj), NULL);
|
||||
DEVICE(obj));
|
||||
}
|
||||
|
||||
static const TypeInfo isa_fdc_info = {
|
||||
|
|
|
@ -1594,7 +1594,7 @@ static void nvme_instance_init(Object *obj)
|
|||
|
||||
device_add_bootindex_property(obj, &s->conf.bootindex,
|
||||
"bootindex", "/namespace@1,0",
|
||||
DEVICE(obj), &error_abort);
|
||||
DEVICE(obj));
|
||||
}
|
||||
|
||||
static const TypeInfo nvme_info = {
|
||||
|
|
|
@ -481,7 +481,7 @@ static void vhost_user_blk_instance_init(Object *obj)
|
|||
VHostUserBlk *s = VHOST_USER_BLK(obj);
|
||||
|
||||
device_add_bootindex_property(obj, &s->bootindex, "bootindex",
|
||||
"/disk@0,0", DEVICE(obj), NULL);
|
||||
"/disk@0,0", DEVICE(obj));
|
||||
}
|
||||
|
||||
static const VMStateDescription vmstate_vhost_user_blk = {
|
||||
|
|
|
@ -1248,7 +1248,7 @@ static void virtio_blk_instance_init(Object *obj)
|
|||
|
||||
device_add_bootindex_property(obj, &s->conf.conf.bootindex,
|
||||
"bootindex", "/disk@0,0",
|
||||
DEVICE(obj), NULL);
|
||||
DEVICE(obj));
|
||||
}
|
||||
|
||||
static const VMStateDescription vmstate_virtio_blk = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue