diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 15:40:22 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 17:59:53 -0300 |
commit | 6cf77d18f6ffa3eda879aff919a8cca10d5aa85a (patch) | |
tree | a60ba90bdc7ab5f4a0f2b959f92d22aa7b0863db /drivers/media/platform/exynos4-is/fimc-isp-video.c | |
parent | b80cefb4153b374d536c11ac4664cfc6dd90073b (diff) | |
download | linux-6cf77d18f6ffa3eda879aff919a8cca10d5aa85a.tar.gz linux-6cf77d18f6ffa3eda879aff919a8cca10d5aa85a.tar.bz2 linux-6cf77d18f6ffa3eda879aff919a8cca10d5aa85a.zip |
[media] marvel-ccic: just return 0 instead of using a var
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>
Diffstat (limited to 'drivers/media/platform/exynos4-is/fimc-isp-video.c')
-rw-r--r-- | drivers/media/platform/exynos4-is/fimc-isp-video.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-isp-video.c b/drivers/media/platform/exynos4-is/fimc-isp-video.c index 93f9cf2ebcd6..9d8d885558e5 100644 --- a/drivers/media/platform/exynos4-is/fimc-isp-video.c +++ b/drivers/media/platform/exynos4-is/fimc-isp-video.c @@ -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 = { |