[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.

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Zhaowei Yuan 2014-07-23 01:06:12 -03:00 committed by Mauro Carvalho Chehab
parent 39c344c448
commit 55647a9936
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ static int s5p_mfc_open(struct file *file)
ret = -ENOMEM; ret = -ENOMEM;
goto err_alloc; goto err_alloc;
} }
v4l2_fh_init(&ctx->fh, video_devdata(file)); v4l2_fh_init(&ctx->fh, vdev);
file->private_data = &ctx->fh; file->private_data = &ctx->fh;
v4l2_fh_add(&ctx->fh); v4l2_fh_add(&ctx->fh);
ctx->dev = dev; ctx->dev = dev;