[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/23] hw/arm/aspeed_ast27x0: Rename variable sram_name to name in
From: |
Cédric Le Goater |
Subject: |
[PULL 06/23] hw/arm/aspeed_ast27x0: Rename variable sram_name to name in ast2700 realize |
Date: |
Mon, 5 May 2025 11:06:18 +0200 |
From: Jamin Lin <jamin_lin@aspeedtech.com>
The variable "sram_name" was only used for naming the SRAM memory region.
Rename it to "name" for consistency with similar code and avoid unnecessary
new local variable declarations.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Nabih Estefan <nabihestefan@google.com>
Link:
https://lore.kernel.org/qemu-devel/20250423072350.541742-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
hw/arm/aspeed_ast27x0.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/arm/aspeed_ast27x0.c b/hw/arm/aspeed_ast27x0.c
index ea4a611b9068..2e21c3a98fa0 100644
--- a/hw/arm/aspeed_ast27x0.c
+++ b/hw/arm/aspeed_ast27x0.c
@@ -592,7 +592,7 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev,
Error **errp)
AspeedSoCClass *sc = ASPEED_SOC_GET_CLASS(s);
AspeedINTCClass *ic = ASPEED_INTC_GET_CLASS(&a->intc[0]);
AspeedINTCClass *icio = ASPEED_INTC_GET_CLASS(&a->intc[1]);
- g_autofree char *sram_name = NULL;
+ g_autofree char *name = NULL;
qemu_irq irq;
/* Default boot region (SPI memory or ROMs) */
@@ -664,9 +664,9 @@ static void aspeed_soc_ast2700_realize(DeviceState *dev,
Error **errp)
}
/* SRAM */
- sram_name = g_strdup_printf("aspeed.sram.%d", CPU(&a->cpu[0])->cpu_index);
- if (!memory_region_init_ram(&s->sram, OBJECT(s), sram_name, sc->sram_size,
- errp)) {
+ name = g_strdup_printf("aspeed.sram.%d", CPU(&a->cpu[0])->cpu_index);
+ if (!memory_region_init_ram(&s->sram, OBJECT(s), name, sc->sram_size,
+ errp)) {
return;
}
memory_region_add_subregion(s->memory,
--
2.49.0
- [PULL 00/23] aspeed queue, Cédric Le Goater, 2025/05/05
- [PULL 01/23] hw/arm: ast27x0: Wire up EHCI controllers, Cédric Le Goater, 2025/05/05
- [PULL 02/23] hw/ssi/aspeed_smc: Allow 64-bit wide flash accesses, Cédric Le Goater, 2025/05/05
- [PULL 08/23] tests/functional/aspeed: Update test ASPEED SDK v09.06, Cédric Le Goater, 2025/05/05
- [PULL 03/23] tests/functional/aspeed: Update test ASPEED SDK v09.06 for AST2500, Cédric Le Goater, 2025/05/05
- [PULL 06/23] hw/arm/aspeed_ast27x0: Rename variable sram_name to name in ast2700 realize,
Cédric Le Goater <=
- [PULL 04/23] tests/functional/aspeed: Update test ASPEED SDK v09.06 for AST2600, Cédric Le Goater, 2025/05/05
- [PULL 10/23] hw/arm/aspeed_ast27x0 Introduce vbootrom memory region, Cédric Le Goater, 2025/05/05
- [PULL 11/23] hw/arm/aspeed: Add support for loading vbootrom image via "-bios", Cédric Le Goater, 2025/05/05
- [PULL 12/23] tests/functional/aspeed: Add to test vbootrom for AST2700, Cédric Le Goater, 2025/05/05
- [PULL 09/23] tests/functional/aspeed: extract boot and login sequence into helper function, Cédric Le Goater, 2025/05/05
- [PULL 05/23] tests/functional/aspeed: Update test ASPEED SDK v03.00 for AST1030, Cédric Le Goater, 2025/05/05
- [PULL 07/23] tests/functional/aspeed: Move I2C test into shared helper for AST2700 reuse, Cédric Le Goater, 2025/05/05
- [PULL 17/23] hw/intc/aspeed: Add support for AST2700 SSP INTC, Cédric Le Goater, 2025/05/05
- [PULL 16/23] aspeed: ast27x0: Correct hex notation for device addresses, Cédric Le Goater, 2025/05/05
- [PULL 19/23] hw/arm/aspeed_ast27x0-ssp: Introduce AST27x0 A1 SSP SoC, Cédric Le Goater, 2025/05/05