diff --git a/drivers/video/rockchip/vcodec/vcodec_service.c b/drivers/video/rockchip/vcodec/vcodec_service.c index d4156bf16804..979dab150465 100644 --- a/drivers/video/rockchip/vcodec/vcodec_service.c +++ b/drivers/video/rockchip/vcodec/vcodec_service.c @@ -1045,12 +1045,6 @@ static int vcodec_bufid_to_iova(struct vpu_subdev_data *data, if (usr_fd == 0) continue; - /* - * for avoiding cache sync issue, we need to map/unmap - * input buffer every time. FIX ME, if it is unnecessary - */ - if (task->reg_rlc == tbl[i]) - vcodec_iommu_free_fd(data->iommu_info, session, usr_fd); /* * special offset scale case *