]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] atmel-isi: get rid of a warning
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 14:21:43 +0000 (11:21 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:15 +0000 (18:52 -0300)
drivers/media/platform/soc_camera/atmel-isi.c: In function 'start_streaming':
drivers/media/platform/soc_camera/atmel-isi.c:387:6: warning: variable 'sr' set but not used [-Wunused-but-set-variable]
  u32 sr = 0;
      ^

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c

index 96a4b112e1ca561a44f3a68d0cfe54198636e8eb..c5291b00105758b8452b0f9ef383780c794fbac7 100644 (file)
@@ -384,7 +384,6 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
        struct soc_camera_device *icd = soc_camera_from_vb2q(vq);
        struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
        struct atmel_isi *isi = ici->priv;
-       u32 sr = 0;
        int ret;
 
        /* Reset ISI */
@@ -398,7 +397,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
 
        spin_lock_irq(&isi->lock);
        /* Clear any pending interrupt */
-       sr = isi_readl(isi, ISI_STATUS);
+       isi_readl(isi, ISI_STATUS);
 
        if (count)
                start_dma(isi, isi->active);