From: Zhaowei Yuan Date: Wed, 16 Jul 2014 02:40:58 +0000 (+0800) Subject: media: s5p_mfc: remove unnecessary calling to function video_devdata() X-Git-Tag: submit/tizen/20141121.110247~485 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2272eba355320489ff81cf0fb92fbdc7aa10f0db;p=platform%2Fkernel%2Flinux-3.10.git 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 --- diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 01d14c7..0597b4d 100755 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -714,7 +714,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;