[media] marvel-ccic: just return 0 instead of using a var
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 18:40:22 +0000 (15:40 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:53 +0000 (17:59 -0300)
Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/fimc-isp-video.c

index 93f9cf2ebcd67293d5565c9900b37f949e86c4be..9d8d885558e53a41e45a8458d971c72fd6cf1e10 100644 (file)
@@ -313,7 +313,6 @@ static int isp_video_release(struct file *file)
        struct fimc_is_video *ivc = &isp->video_capture;
        struct media_entity *entity = &ivc->ve.vdev.entity;
        struct media_device *mdev = entity->parent;
-       int ret = 0;
 
        mutex_lock(&isp->video_lock);
 
@@ -335,7 +334,7 @@ static int isp_video_release(struct file *file)
        pm_runtime_put(&isp->pdev->dev);
        mutex_unlock(&isp->video_lock);
 
-       return ret;
+       return 0;
 }
 
 static const struct v4l2_file_operations isp_video_fops = {
This page took 0.027049 seconds and 5 git commands to generate.