[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250508100835.336240-1-colin.i.king@gmail.com>
Date: Thu, 8 May 2025 11:08:35 +0100
From: Colin Ian King <colin.i.king@...il.com>
To: Mikhail Ulyanov <mikhail.ulyanov@...entembedded.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Magnus Damm <magnus.damm@...il.com>,
linux-media@...r.kernel.org,
linux-renesas-soc@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH][next] media: rcar_jpu: remove redundant case statement when c is zero
The case statement where c is zero is redundant because the previous
while loop will only exit if c is non-zero or non-0xff, so c can
never be zero by the time the switch statement is reaced. Clean up
the code by removing it.
Signed-off-by: Colin Ian King <colin.i.king@...il.com>
---
drivers/media/platform/renesas/rcar_jpu.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/media/platform/renesas/rcar_jpu.c b/drivers/media/platform/renesas/rcar_jpu.c
index 81038df71bb5..6af154b41eb4 100644
--- a/drivers/media/platform/renesas/rcar_jpu.c
+++ b/drivers/media/platform/renesas/rcar_jpu.c
@@ -643,8 +643,6 @@ static u8 jpu_parse_hdr(void *buffer, unsigned long size, unsigned int *width,
return 0;
skip(&jpeg_buffer, (long)word - 2);
break;
- case 0:
- break;
default:
return 0;
}
--
2.49.0
Powered by blists - more mailing lists