[media] pxa_camera: remove an unused structure pointer
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 9 Sep 2016 13:59:57 +0000 (10:59 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 9 Sep 2016 13:59:57 +0000 (10:59 -0300)
As reported by smatch:

drivers/media/platform/pxa_camera.c: In function 'pxa_dma_start_channels':
drivers/media/platform/pxa_camera.c:457:21: warning: variable 'active' set but not used [-Wunused-but-set-variable]
  struct pxa_buffer *active;
                     ^~~~~~

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/pxa_camera.c

index 733677f06cb4cce926639fc41cc9a5ee743d95ad..11478364c6d62c0cfa8cd3da9f5f0f67a3e96ad0 100644 (file)
@@ -455,9 +455,6 @@ static void pxa_videobuf_set_actdma(struct pxa_camera_dev *pcdev,
 static void pxa_dma_start_channels(struct pxa_camera_dev *pcdev)
 {
        int i;
-       struct pxa_buffer *active;
-
-       active = pcdev->active;
 
        for (i = 0; i < pcdev->channels; i++) {
                dev_dbg(pcdev_to_dev(pcdev),