[PATCH] hw/core: fix else placement in sysbus.c

Ganesh Harshan posted 1 patch 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260624151302.31280-1-ganeshredcobra@gmail.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>
hw/core/sysbus.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] hw/core: fix else placement in sysbus.c
Posted by Ganesh Harshan 1 month ago
Move else to the same line as the closing brace to comply
with coding style guidelines.

Signed-off-by: Ganesh Harshan <ganeshredcobra@gmail.com>
---
 hw/core/sysbus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c
index 3e1160ee92..c07afaa802 100644
--- a/hw/core/sysbus.c
+++ b/hw/core/sysbus.c
@@ -132,8 +132,7 @@ static void sysbus_mmio_map_common(SysBusDevice *dev, int n, hwaddr addr,
                                             addr,
                                             dev->mmio[n].memory,
                                             priority);
-    }
-    else {
+    } else {
         memory_region_add_subregion(get_system_memory(),
                                     addr,
                                     dev->mmio[n].memory);
-- 
2.47.3