Skip to contentSkip to conversation

media: platform: samsung: remove redundant assignment to variable m

PATCH New Colin Ian King 1 participant 1 message Apr 5, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/samsung/s5p-jpeg/jpeg-hw-s5p.c +0 -1
index 01b47b3df1e7..33e6e85dfd78 100644
@@ -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
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel