media: rockchip/vpu: Remove a useless test
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>
This commit is contained in:
parent
9d4e1f745d
commit
6002e0be75
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue