]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Avoid using prop->name unnecessarily
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 11 Dec 2020 22:05:16 +0000 (17:05 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Dec 2020 20:20:17 +0000 (15:20 -0500)
commit991f0ac90151fe1bf51a1630938041a5c5745fb9
treef0bbb769d9f6232d4413792f681bde0f5cae6f6f
parente68c2cb75af2960dc6ad9705e71ab9cd97b901f6
qdev: Avoid using prop->name unnecessarily

We already get the property name as argument to the property
getter and setters, we don't need to use prop->name.  This will
make it easier to remove the Property.name field in the future.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-20-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
backends/tpm/tpm_util.c
hw/core/qdev-properties-system.c
hw/core/qdev-properties.c