summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2014-09-01 13:05:49 (GMT)
committerChanho Park <chanho61.park@samsung.com>2014-11-18 03:01:15 (GMT)
commitb2bcd4db09b00706162006553cc61dea3066c68d (patch)
tree8298830a8e17d5f3ad20193f058e2e5324561f58
parent7810a2389004556943bcd68cb2515bc6521cd8c8 (diff)
downloadlinux-3.10-b2bcd4db09b00706162006553cc61dea3066c68d.zip
linux-3.10-b2bcd4db09b00706162006553cc61dea3066c68d.tar.gz
linux-3.10-b2bcd4db09b00706162006553cc61dea3066c68d.tar.bz2
[media] s5p-jpeg: Avoid assigning readl result
Avoid gcc warning when -Wunused-but-set-variable is enabled. The readl return value need not to be assigned to any variable as the reading itself is just a part of a sequence required for clearing the interrupt flag. Change-Id: I09b9ec4a724ae46eca0491d81003cd0c0f714ad2 Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
index 0d37bed..e3b8e67 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c
@@ -324,11 +324,9 @@ int s5p_jpeg_stream_stat_ok(void __iomem *regs)
void s5p_jpeg_clear_int(void __iomem *regs)
{
- unsigned long reg;
-
readl(regs + S5P_JPGINTST);
writel(S5P_INT_RELEASE, regs + S5P_JPGCOM);
- reg = readl(regs + S5P_JPGOPR);
+ readl(regs + S5P_JPGOPR);
}
unsigned int s5p_jpeg_compressed_size(void __iomem *regs)