Skip to contentSkip to conversation

hw/core: fix else placement in sysbus.c

PATCH New Ganesh Harshan 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

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

Move else to the same line as the closing brace to comply with coding style guidelines.

---
 hw/core/sysbus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
hw/core/sysbus.c +1 -2
index 3e1160ee92..c07afaa802 100644
@@ -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);
Signature · 1 line
2.47.3