From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGpZA-0001E3-SB for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGpZA-0007iI-4i for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:36:48 -0400 From: Krzysztof Kozlowski Date: Fri, 2 Jun 2017 18:36:15 +0200 Message-Id: <20170602163618.6369-6-krzk@kernel.org> In-Reply-To: <20170602163618.6369-1-krzk@kernel.org> References: <20170602162857.6065-1-krzk@kernel.org> <20170602163618.6369-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 6/9] hw/arm/exynos: Declare local variables in some order List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mitsyanko , Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eric Blake , Krzysztof Kozlowski 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 Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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) =20 Exynos4210State *exynos4210_init(MemoryRegion *system_mem) { - int i, n; Exynos4210State *s =3D 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; =20 cpu_oc =3D cpu_class_by_name(TYPE_ARM_CPU, "cortex-a9"); assert(cpu_oc); --=20 2.9.3