From: Guennadi Liakhovetski Date: Tue, 8 May 2012 15:56:15 +0000 (-0300) Subject: [media] V4L: marvell-ccic: (cosmetic) remove redundant variable assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cbde6a2dbaf704defb95958af335fddd770edc4c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] V4L: marvell-ccic: (cosmetic) remove redundant variable assignment 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 Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/marvell-ccic/mcam-core.c b/drivers/media/video/marvell-ccic/mcam-core.c index 996ac34d9a89..ce2b7b4788d6 100644 --- a/drivers/media/video/marvell-ccic/mcam-core.c +++ b/drivers/media/video/marvell-ccic/mcam-core.c @@ -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;