From nobody Thu Nov 6 16:04:56 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1489430341517429.4561498008866; Mon, 13 Mar 2017 11:39:01 -0700 (PDT) Received: from localhost ([::1]:53817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnUrz-0007G5-D7 for importer@patchew.org; Mon, 13 Mar 2017 14:38:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnUpj-0005mn-4N for qemu-devel@nongnu.org; Mon, 13 Mar 2017 14:36:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnUpi-0000ix-Dk for qemu-devel@nongnu.org; Mon, 13 Mar 2017 14:36:39 -0400 Received: from mail.kernel.org ([198.145.29.136]:54476) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cnUpg-0000hg-8z; Mon, 13 Mar 2017 14:36:36 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F7DE203F7; Mon, 13 Mar 2017 18:36:34 +0000 (UTC) Received: from localhost.localdomain (bzq-79-180-56-222.red.bezeqint.net [79.180.56.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0CF87203F1; Mon, 13 Mar 2017 18:36:30 +0000 (UTC) From: Krzysztof Kozlowski To: Igor Mitsyanko , Peter Maydell , Paolo Bonzini , qemu-arm@nongnu.org, qemu-devel@nongnu.org Date: Mon, 13 Mar 2017 20:35:57 +0200 Message-Id: <20170313183557.23195-4-krzk@kernel.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170313183557.23195-1-krzk@kernel.org> References: <20170313183557.23195-1-krzk@kernel.org> X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 198.145.29.136 Subject: [Qemu-devel] [PATCH v2 3/3] hw/misc/exynos4210_pmu: Reorder local variables for readability X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Krzysztof Kozlowski Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Short declaration of 'i' was in the middle of declarations with assignments. Make it a little bit more readable. Additionally switch from "unsigned" to "unsigned int" as this pattern is more widely used. No functional change. Signed-off-by: Krzysztof Kozlowski --- hw/misc/exynos4210_pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/exynos4210_pmu.c b/hw/misc/exynos4210_pmu.c index e30dbc7d3d83..63a8ccd35559 100644 --- a/hw/misc/exynos4210_pmu.c +++ b/hw/misc/exynos4210_pmu.c @@ -401,8 +401,8 @@ static uint64_t exynos4210_pmu_read(void *opaque, hwadd= r offset, unsigned size) { Exynos4210PmuState *s =3D (Exynos4210PmuState *)opaque; - unsigned i; const Exynos4210PmuReg *reg_p =3D exynos4210_pmu_regs; + unsigned int i; =20 for (i =3D 0; i < PMU_NUM_OF_REGISTERS; i++) { if (reg_p->offset =3D=3D offset) { @@ -420,8 +420,8 @@ static void exynos4210_pmu_write(void *opaque, hwaddr o= ffset, uint64_t val, unsigned size) { Exynos4210PmuState *s =3D (Exynos4210PmuState *)opaque; - unsigned i; const Exynos4210PmuReg *reg_p =3D exynos4210_pmu_regs; + unsigned int i; =20 for (i =3D 0; i < PMU_NUM_OF_REGISTERS; i++) { if (reg_p->offset =3D=3D offset) { --=20 2.9.3