[media] s5p-mfc: remove unnecessary calling to function video_devdata()
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Wed, 23 Jul 2014 04:06:12 +0000 (01:06 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 22:22:21 +0000 (19:22 -0300)
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>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index e3f0b54bdf45b9e97740f8d9d02c4c3359a0a70a..d35b0418ab371ec132760182a3f35fe71662e279 100644 (file)
@@ -724,7 +724,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;