[media] s5p-jpeg: Get rid of a warning
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 14:23:58 +0000 (11:23 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:15 +0000 (18:52 -0300)
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c: In function 's5p_jpeg_clear_int':
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c:327:16: warning: variable 'reg' set but not used [-Wunused-but-set-variable]
  unsigned long reg;
                ^

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c

index 52407d7907267e520b81bcc540420f1f2ff34544..0d37bed088dfab978985cd0698937d474ff466e9 100644 (file)
@@ -326,7 +326,7 @@ void s5p_jpeg_clear_int(void __iomem *regs)
 {
        unsigned long reg;
 
-       reg = readl(regs + S5P_JPGINTST);
+       readl(regs + S5P_JPGINTST);
        writel(S5P_INT_RELEASE, regs + S5P_JPGCOM);
        reg = readl(regs + S5P_JPGOPR);
 }