@@ -334,9 +334,6 @@ void media_entity_graph_walk_start(struct media_entity_graph *graph,
graph->stack[graph->top].entity = NULL;
media_entity_enum_init(graph->entities);
- if (WARN_ON(entity->low_id >= MEDIA_ENTITY_MAX_LOW_ID))
- return;
-
media_entity_enum_set(graph->entities, entity);
stack_push(graph, entity);
}
@@ -381,8 +378,6 @@ media_entity_graph_walk_next(struct media_entity_graph *graph)
/* Get the entity in the other end of the link . */
next = media_entity_other(entity, link);
- if (WARN_ON(entity->low_id >= MEDIA_ENTITY_MAX_LOW_ID))
- return NULL;
/* Has the entity already been visited? */
if (media_entity_enum_test_and_set(graph->entities, next)) {
The checks for entity ID not reaching too high value the framework could not handle are now present in the entity registration. It's quite far-fetched this condition could happen inside the framework, so remove the WARN_ON()'s. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- drivers/media/media-entity.c | 5 ----- 1 file changed, 5 deletions(-)