[media] soc-camera: remove redundant code
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Sun, 1 Feb 2015 15:06:17 +0000 (12:06 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 12:40:25 +0000 (10:40 -0200)
A hunk, removing this code has been lost between versions 6 and 7 of
patch "soc-camera: add V4L2-async support." The code is harmless, but
redundant.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/soc_camera.c

index 4105a9e..cee7b56 100644 (file)
@@ -1797,8 +1797,6 @@ eadddev:
                mutex_unlock(&ici->clk_lock);
        }
 eadd:
-       video_device_release(icd->vdev);
-       icd->vdev = NULL;
        if (icd->vdev) {
                video_device_release(icd->vdev);
                icd->vdev = NULL;