qdev_prop_name is supposed to be used only by qdev property registration code, we don't need to set it for array element properties.
Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- This is a new patch added in v2 of the series --- Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: "Daniel P. Berrangé" <berra...@redhat.com> Cc: Eduardo Habkost <ehabk...@redhat.com> Cc: qemu-devel@nongnu.org --- hw/core/qdev-properties.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c index 5a4aa87fc9..f1557f12b9 100644 --- a/hw/core/qdev-properties.c +++ b/hw/core/qdev-properties.c @@ -596,7 +596,6 @@ static void set_prop_arraylen(Object *obj, Visitor *v, const char *name, arrayprop->release = prop->arrayinfo->release; arrayprop->propname = propname; arrayprop->prop.info = prop->arrayinfo; - arrayprop->prop.qdev_prop_name = propname; /* This ugly piece of pointer arithmetic sets up the offset so * that when the underlying get/set hooks call qdev_get_prop_ptr * they get the right answer despite the array element not actually -- 2.28.0