aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/spapr.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2019-01-07 17:30:19 -0200
committerEduardo Habkost <ehabkost@redhat.com>2019-01-09 22:10:00 -0200
commite0985450e134db99e2ee167e9cd0087a51220d8f (patch)
treef529184bd63808f5824b2512ec05f312c503f280 /hw/ppc/spapr.c
parentb3bcb3cedf58cb3c64a20712861ed9382773fd6b (diff)
downloadqemu-e0985450e134db99e2ee167e9cd0087a51220d8f.zip
qemu-e0985450e134db99e2ee167e9cd0087a51220d8f.tar.gz
qemu-e0985450e134db99e2ee167e9cd0087a51220d8f.tar.bz2
machine: Eliminate unnecessary stringify() usage
stringify() is useful when we need to use macros in compat_props (like when we set virtio-baloon-pci.class=PCI_CLASS_MEMORY_RAM at pc_i440fx_1_0_machine_options()), but it is pointless when we are already providing a number literal. Replace stringify() with string literals when appropriate. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190107193020.21744-3-ehabkost@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/ppc/spapr.c')
-rw-r--r--hw/ppc/spapr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 54a19d2..b6e42c7 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -4324,7 +4324,7 @@ static void spapr_machine_2_6_class_options(MachineClass *mc)
{
.driver = TYPE_SPAPR_PCI_HOST_BRIDGE,
.property = "ddw",
- .value = stringify(off),
+ .value = "off",
},
};