提交 313895fb 编写于 作者: J Javier Martinez Canillas 提交者: Mauro Carvalho Chehab

[media] media-entity: remove unneded enclosing parenthesis

Commit 86ee417578a2 ("[media] media: convert links from array to list")
had many changes that were automated using coccinelle but the semantic
patch was not smart enough to rely on operators precedence and avoid
using unnecessary enclosing parenthesis.

This patch removes them since are not needed.
Suggested-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 1cb2f6f4
...@@ -225,7 +225,7 @@ static void stack_push(struct media_entity_graph *graph, ...@@ -225,7 +225,7 @@ static void stack_push(struct media_entity_graph *graph,
return; return;
} }
graph->top++; graph->top++;
graph->stack[graph->top].link = (&entity->links)->next; graph->stack[graph->top].link = entity->links.next;
graph->stack[graph->top].entity = entity; graph->stack[graph->top].entity = entity;
} }
...@@ -268,7 +268,7 @@ media_entity_graph_walk_next(struct media_entity_graph *graph) ...@@ -268,7 +268,7 @@ media_entity_graph_walk_next(struct media_entity_graph *graph)
* top of the stack until no more entities on the level can be * top of the stack until no more entities on the level can be
* found. * found.
*/ */
while (link_top(graph) != &(stack_top(graph)->links)) { while (link_top(graph) != &stack_top(graph)->links) {
struct media_entity *entity = stack_top(graph); struct media_entity *entity = stack_top(graph);
struct media_link *link; struct media_link *link;
struct media_entity *next; struct media_entity *next;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册