mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
b3bcb3cedf
commit
e0985450e1
4 changed files with 67 additions and 67 deletions
|
@ -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",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue