Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Boris Brezillon and committed by
Mauro Carvalho Chehab
6002e0be 9d4e1f74

+2 -4
+2 -4
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c
··· 271 271 filp->private_data = &ctx->fh; 272 272 v4l2_fh_add(&ctx->fh); 273 273 274 - if (vdev == vpu->vfd_enc) { 275 - rockchip_vpu_enc_reset_dst_fmt(vpu, ctx); 276 - rockchip_vpu_enc_reset_src_fmt(vpu, ctx); 277 - } 274 + rockchip_vpu_enc_reset_dst_fmt(vpu, ctx); 275 + rockchip_vpu_enc_reset_src_fmt(vpu, ctx); 278 276 279 277 ret = rockchip_vpu_ctrls_setup(vpu, ctx); 280 278 if (ret) {