summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhaowei Yuan <zhaowei.yuan@samsung.com>2014-07-16 10:40:58 +0800
committerSylwester Nawrocki <s.nawrocki@samsung.com>2014-07-17 06:13:19 -0700
commit3ef72afcfa5f912e29ad9627a9b7b60d04cf4220 (patch)
tree7d10b1ce554c7128ec5bdb0e9a401bc51f8c6c86
parent3877715ae8a022fdc1f51560ee63b708999d01f2 (diff)
downloadlinux-3.10-3ef72afcfa5f912e29ad9627a9b7b60d04cf4220.tar.gz
linux-3.10-3ef72afcfa5f912e29ad9627a9b7b60d04cf4220.tar.bz2
linux-3.10-3ef72afcfa5f912e29ad9627a9b7b60d04cf4220.zip
media: s5p_mfc: remove unnecessary calling to function video_devdata()
Since we have get vdev by calling video_devdata() at the beginning of s5p_mfc_open(), we should just use vdev instead of calling video_devdata() again in the following code. Change-Id: I869051762d33b50a7c0dbc8149b072e70b89c6b9 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
-rwxr-xr-xdrivers/media/platform/s5p-mfc/s5p_mfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index d57b306c281..d508cbc6b0f 100755
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -709,7 +709,7 @@ static int s5p_mfc_open(struct file *file)
ret = -ENOMEM;
goto err_alloc;
}
- v4l2_fh_init(&ctx->fh, video_devdata(file));
+ v4l2_fh_init(&ctx->fh, vdev);
file->private_data = &ctx->fh;
v4l2_fh_add(&ctx->fh);
ctx->dev = dev;