[media] V4L: marvell-ccic: (cosmetic) remove redundant variable assignment
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 8 May 2012 15:56:15 +0000 (12:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 11:52:03 +0000 (08:52 -0300)
The "ret = 0" assignment in mcam_vidioc_s_fmt_vid_cap() is redundant,
because at that location "ret" is anyway guaranteed to be == 0.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/marvell-ccic/mcam-core.c

index 996ac34d9a89b24af517ca6d88f076e601bbb8e2..ce2b7b4788d681327f870112b7b74e2792963981 100644 (file)
@@ -1356,7 +1356,6 @@ static int mcam_vidioc_s_fmt_vid_cap(struct file *filp, void *priv,
                        goto out;
        }
        mcam_set_config_needed(cam, 1);
-       ret = 0;
 out:
        mutex_unlock(&cam->s_mutex);
        return ret;