[RFC 6/9] media: entity: Remove useless WARN_ON()'s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 drivers/media/media-entity.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index a4d6e1b..e4f0f4a 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -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)) {
-- 
2.1.0.231.g7484e3b

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux