From: Colin Ian King Date: Tue, 5 Apr 2022 17:59:59 +0000 (+0100) Subject: media: platform: samsung: remove redundant assignment to variable m X-Git-Tag: v6.1-rc5~1294^2~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb11bc40c4cb83741540bd8da6ad93155868c466;p=platform%2Fkernel%2Flinux-starfive.git media: platform: samsung: remove redundant assignment to variable m The variable m is being assigned a value that is never read, it is being re-assigned in both paths of the following if-statement. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c b/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c index 01b47b3..33e6e85 100644 --- a/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c +++ b/drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c @@ -52,7 +52,6 @@ void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode) { unsigned long reg, m; - m = S5P_PROC_MODE_DECOMPR; if (mode == S5P_JPEG_ENCODE) m = S5P_PROC_MODE_COMPR; else