vc4: Reuse list_for_each_entry_rev().
This commit is contained in:
parent
7c01ddbf7f
commit
d6d83b34ee
|
@ -452,13 +452,13 @@ calculate_forward_deps(struct vc4_compile *c, struct list_head *schedule_list)
|
|||
static void
|
||||
calculate_reverse_deps(struct vc4_compile *c, struct list_head *schedule_list)
|
||||
{
|
||||
struct list_head *node;
|
||||
struct schedule_state state;
|
||||
|
||||
memset(&state, 0, sizeof(state));
|
||||
state.dir = R;
|
||||
|
||||
for (node = schedule_list->prev; schedule_list != node; node = node->prev) {
|
||||
list_for_each_entry_rev(struct schedule_node, node, schedule_list,
|
||||
link) {
|
||||
calculate_deps(&state, (struct schedule_node *)node);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue