mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
[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: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
1cb2f6f4b1
commit
313895fba2
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ static void stack_push(struct media_entity_graph *graph,
|
|||
return;
|
||||
}
|
||||
graph->top++;
|
||||
graph->stack[graph->top].link = (&entity->links)->next;
|
||||
graph->stack[graph->top].link = entity->links.next;
|
||||
graph->stack[graph->top].entity = entity;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
* 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_link *link;
|
||||
struct media_entity *next;
|
||||
|
|
Loading…
Reference in a new issue