]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Avoid unnecessary DeviceState* variable at set_prop_arraylen()
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 11 Dec 2020 22:05:28 +0000 (17:05 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Dec 2020 20:20:18 +0000 (15:20 -0500)
commitf405e3cdffe9d370867aeeef899863d619c32e26
treed4c842ef2096b915a167264a22212637d968b4f5
parent1e198715e12ae86c4942a0a2d1df29beabccc295
qdev: Avoid unnecessary DeviceState* variable at set_prop_arraylen()

We're just doing pointer math with the device pointer, we can
simply use obj instead.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-32-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/qdev-properties.c