From patchwork Sat Sep 24 12:28:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 12987635 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3464DC07E9D for ; Sat, 24 Sep 2022 12:39:33 +0000 (UTC) Received: from localhost ([::1]:50182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oc4RQ-0003q8-6T for qemu-devel@archiver.kernel.org; Sat, 24 Sep 2022 08:39:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc4GR-0008TE-OL; Sat, 24 Sep 2022 08:28:11 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:62715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc4GQ-0001EO-5T; Sat, 24 Sep 2022 08:28:11 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 3F67875A166; Sat, 24 Sep 2022 14:28:07 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 21E2775A15D; Sat, 24 Sep 2022 14:28:07 +0200 (CEST) Message-Id: <19db326bea989c03e08f2853f789315bbe806fe9.1664021647.git.balaton@eik.bme.hu> In-Reply-To: References: From: BALATON Zoltan Subject: [PATCH v6 17/25] ppc440_uc.c: Remove unneeded parenthesis MIME-Version: 1.0 To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Cc: clg@kaod.org, Daniel Henrique Barboza , Peter Maydell Date: Sat, 24 Sep 2022 14:28:07 +0200 (CEST) Received-SPF: pass client-ip=2001:738:2001:2001::2001; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Remove unneeded parenthesis around case labels. Signed-off-by: BALATON Zoltan Reviewed-by: Cédric Le Goater --- hw/ppc/ppc440_uc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c index 0a41274d63..24623ebe0c 100644 --- a/hw/ppc/ppc440_uc.c +++ b/hw/ppc/ppc440_uc.c @@ -499,34 +499,34 @@ static uint32_t sdram_ddr2_bcr(hwaddr ram_base, hwaddr ram_size) uint32_t bcr; switch (ram_size) { - case (8 * MiB): + case 8 * MiB: bcr = 0xffc0; break; - case (16 * MiB): + case 16 * MiB: bcr = 0xff80; break; - case (32 * MiB): + case 32 * MiB: bcr = 0xff00; break; - case (64 * MiB): + case 64 * MiB: bcr = 0xfe00; break; - case (128 * MiB): + case 128 * MiB: bcr = 0xfc00; break; - case (256 * MiB): + case 256 * MiB: bcr = 0xf800; break; - case (512 * MiB): + case 512 * MiB: bcr = 0xf000; break; - case (1 * GiB): + case 1 * GiB: bcr = 0xe000; break; - case (2 * GiB): + case 2 * GiB: bcr = 0xc000; break; - case (4 * GiB): + case 4 * GiB: bcr = 0x8000; break; default: