summaryrefslogtreecommitdiff
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-04-05 20:59:59 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-04-24 10:45:28 +0300
commitfb11bc40c4cb83741540bd8da6ad93155868c466 (patch)
treeb45c428b74f937231fe8a7de01b3b7c01edc2bee /drivers/media/platform
parent375acc17b108916de7357a6fad42e8bff61cd47d (diff)
downloadlinux-fb11bc40c4cb83741540bd8da6ad93155868c466.tar.xz
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 <colin.i.king@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c1
1 files changed, 0 insertions, 1 deletions
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 01b47b3df1e7..33e6e85dfd78 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