aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_team.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/if_team.h')
-rw-r--r--include/linux/if_team.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h
index b662045a81c0..f6156f91eb1c 100644
--- a/include/linux/if_team.h
+++ b/include/linux/if_team.h
@@ -260,12 +260,12 @@ team_get_first_port_txable_rcu(struct team *team, struct team_port *port)
260 return port; 260 return port;
261 cur = port; 261 cur = port;
262 list_for_each_entry_continue_rcu(cur, &team->port_list, list) 262 list_for_each_entry_continue_rcu(cur, &team->port_list, list)
263 if (team_port_txable(port)) 263 if (team_port_txable(cur))
264 return cur; 264 return cur;
265 list_for_each_entry_rcu(cur, &team->port_list, list) { 265 list_for_each_entry_rcu(cur, &team->port_list, list) {
266 if (cur == port) 266 if (cur == port)
267 break; 267 break;
268 if (team_port_txable(port)) 268 if (team_port_txable(cur))
269 return cur; 269 return cur;
270 } 270 }
271 return NULL; 271 return NULL;