media: s5p_mfc: remove unnecessary calling to function video_devdata()
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Wed, 16 Jul 2014 02:40:58 +0000 (10:40 +0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:05 +0000 (12:00 +0900)
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>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index 01d14c7..0597b4d 100755 (executable)
@@ -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;