diff mbox series

[3/3] hw/acpi : add spaces around operator

Message ID 20201103102634.273021-3-zhangxinhao1@huawei.com
State Superseded
Headers show
Series None | expand

Commit Message

Xinhao Zhang Nov. 3, 2020, 10:26 a.m. UTC
Fix code style. Operator needs spaces both sides.

Signed-off-by: Xinhao Zhang <zhangxinhao1@huawei.com>
Signed-off-by: Kai Deng <dengkai1@huawei.com>
---
 hw/acpi/pcihp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Igor Mammedov Nov. 3, 2020, 12:28 p.m. UTC | #1
On Tue, 3 Nov 2020 18:26:34 +0800
Xinhao Zhang <zhangxinhao1@huawei.com> wrote:

> Fix code style. Operator needs spaces both sides.

> 

> Signed-off-by: Xinhao Zhang <zhangxinhao1@huawei.com>

> Signed-off-by: Kai Deng <dengkai1@huawei.com>


Reviewed-by: Igor Mammedov <imammedo@redhat.com>


> ---

>  hw/acpi/pcihp.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c

> index 32ae8b2c0a..17c32e0ffd 100644

> --- a/hw/acpi/pcihp.c

> +++ b/hw/acpi/pcihp.c

> @@ -400,7 +400,7 @@ void acpi_pcihp_init(Object *owner, AcpiPciHpState *s, PCIBus *root_bus,

>      s->io_len = ACPI_PCIHP_SIZE;

>      s->io_base = ACPI_PCIHP_ADDR;

>  

> -    s->root= root_bus;

> +    s->root = root_bus;

>      s->legacy_piix = !bridges_enabled;

>  

>      memory_region_init_io(&s->io, owner, &acpi_pcihp_io_ops, s,
diff mbox series

Patch

diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c
index 32ae8b2c0a..17c32e0ffd 100644
--- a/hw/acpi/pcihp.c
+++ b/hw/acpi/pcihp.c
@@ -400,7 +400,7 @@  void acpi_pcihp_init(Object *owner, AcpiPciHpState *s, PCIBus *root_bus,
     s->io_len = ACPI_PCIHP_SIZE;
     s->io_base = ACPI_PCIHP_ADDR;
 
-    s->root= root_bus;
+    s->root = root_bus;
     s->legacy_piix = !bridges_enabled;
 
     memory_region_init_io(&s->io, owner, &acpi_pcihp_io_ops, s,