media: rockchip/vpu: Remove a useless test
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 25 Apr 2019 07:12:26 +0000 (03:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 16:12:24 +0000 (12:12 -0400)
vdev is guaranteed to be equal to vpu->vfd_enc thanks a test done a few
lines above. Remove this useless test.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c

index 21d2591e7b7b40f10dad46f50ea360c7d9461e57..3c3ce3baeb6d4df0ed0572d24cb3ac34c8cb3ff0 100644 (file)
@@ -271,10 +271,8 @@ static int rockchip_vpu_open(struct file *filp)
        filp->private_data = &ctx->fh;
        v4l2_fh_add(&ctx->fh);
 
-       if (vdev == vpu->vfd_enc) {
-               rockchip_vpu_enc_reset_dst_fmt(vpu, ctx);
-               rockchip_vpu_enc_reset_src_fmt(vpu, ctx);
-       }
+       rockchip_vpu_enc_reset_dst_fmt(vpu, ctx);
+       rockchip_vpu_enc_reset_src_fmt(vpu, ctx);
 
        ret = rockchip_vpu_ctrls_setup(vpu, ctx);
        if (ret) {