Revert "video: driver: refine refcount handling for release buffer"

This reverts commit bdd7a33bfb.
This commit is contained in:
Maheshwar Ajja
2021-04-19 15:26:37 -07:00
committed by Gerrit - the friendly Code Review server
parent ebf199bf2f
commit da6943c26a
2 changed files with 1 additions and 12 deletions

View File

@@ -2161,7 +2161,6 @@ int msm_vidc_map_driver_buf(struct msm_vidc_inst *inst,
int rc = 0;
struct msm_vidc_mappings *mappings;
struct msm_vidc_map *map;
struct msm_vidc_buffer *rel_buf;
bool found = false;
if (!inst || !buf) {
@@ -2207,16 +2206,6 @@ int msm_vidc_map_driver_buf(struct msm_vidc_inst *inst,
}
}
list_add_tail(&map->list, &mappings->list);
} else {
/* increment map ref_count, if buf already present in release list */
list_for_each_entry(rel_buf, &inst->buffers.release.list, list) {
if (rel_buf->device_addr == buf->device_addr) {
rc = msm_vidc_memory_map(inst->core, map);
if (rc)
return rc;
break;
}
}
}
rc = msm_vidc_memory_map(inst->core, map);
if (rc)