mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
memdev: remove "id" property
The "id" property is unnecessary and can be replaced simply with
object_get_canonical_path_component. This patch mostly undoes commit
e1ff3c67e8
("monitor: fix qmp/hmp query-memdev not reporting IDs of
memory backends", 2017-01-12).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
770dec2627
commit
29de4ec164
4 changed files with 1 additions and 34 deletions
|
@ -65,12 +65,6 @@ Object *user_creatable_add_type(const char *type, const char *id,
|
|||
|
||||
assert(qdict);
|
||||
obj = object_new(type);
|
||||
if (object_property_find(obj, "id", NULL)) {
|
||||
object_property_set_str(obj, id, "id", &local_err);
|
||||
if (local_err) {
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
visit_start_struct(v, NULL, NULL, 0, &local_err);
|
||||
if (local_err) {
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue