[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v3 07/11] hw/arm/exynos: Declare local variables in so
From: |
Krzysztof Kozlowski |
Subject: |
[Qemu-arm] [PATCH v3 07/11] hw/arm/exynos: Declare local variables in some order |
Date: |
Sun, 21 May 2017 17:29:45 +0200 |
Bring some more readability by declaring local function variables: first
initialized ones and then the rest (with reversed-christmas-tree order).
Signed-off-by: Krzysztof Kozlowski <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/arm/exynos4210.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/arm/exynos4210.c b/hw/arm/exynos4210.c
index 0da877f8db0a..27a7bf28a5a9 100644
--- a/hw/arm/exynos4210.c
+++ b/hw/arm/exynos4210.c
@@ -162,12 +162,12 @@ static uint64_t exynos4210_calc_affinity(int cpu)
Exynos4210State *exynos4210_init(MemoryRegion *system_mem)
{
- int i, n;
Exynos4210State *s = g_new(Exynos4210State, 1);
qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS];
- DeviceState *dev;
SysBusDevice *busdev;
ObjectClass *cpu_oc;
+ DeviceState *dev;
+ int i, n;
cpu_oc = cpu_class_by_name(TYPE_ARM_CPU, "cortex-a9");
assert(cpu_oc);
--
2.9.3
- [Qemu-arm] [PATCH v3 00/11] hw: arm: exynos: Bring up secondary CPU, QOM-ify Soc, other improvements, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 02/11] hw/intc/exynos4210_gic: Use more meaningful name for local variable, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 01/11] hw/intc/exynos4210_gic: Fix GIC memory mappings for secondary CPU, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 03/11] hw/timer/exynos4210_mct: Fix checkpatch style errors, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 04/11] hw/timer/exynos4210_mct: Cleanup indentation and empty new lines, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 07/11] hw/arm/exynos: Declare local variables in some order,
Krzysztof Kozlowski <=
- [Qemu-arm] [PATCH v3 08/11] hw/arm/exynos: QOM-ify the SoC, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 05/11] hw/timer/exynos4210_mct: Remove unused defines, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 06/11] hw/arm/exynos: Move DRAM initialization next boards, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 09/11] hw/arm/exynos: Use type define instead of hard-coded a9mpcore_priv string, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 10/11] hw/intc/exynos4210_gic: Constify array of combiner interrupts, Krzysztof Kozlowski, 2017/05/21
- [Qemu-arm] [PATCH v3 11/11] hw/misc/exynos4210_pmu: Add support for system poweroff, Krzysztof Kozlowski, 2017/05/21
- Re: [Qemu-arm] [PATCH v3 00/11] hw: arm: exynos: Bring up secondary CPU, QOM-ify Soc, other improvements, Peter Maydell, 2017/05/30