diff mbox series

[v6,17/25] ppc440_uc.c: Remove unneeded parenthesis

Message ID 19db326bea989c03e08f2853f789315bbe806fe9.1664021647.git.balaton@eik.bme.hu
State Accepted
Headers show
Series ppc4xx_sdram QOMify and clean ups | expand

Commit Message

BALATON Zoltan Sept. 24, 2022, 12:28 p.m. UTC
Remove unneeded parenthesis around case labels.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 hw/ppc/ppc440_uc.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

Comments

Cédric Le Goater Sept. 26, 2022, 4:57 p.m. UTC | #1
On 9/24/22 14:28, BALATON Zoltan wrote:
> Remove unneeded parenthesis around case labels.
> 
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>

Reviewed-by: Cédric Le Goater <clg@kaod.org>

Thanks,

C.


> ---
>   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:
diff mbox series

Patch

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: