mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
team: Remove dead code
The deleted lines are called from a function which is called: 1) Only through __team_options_register via team_options_register and 2) Only during initialization / mode initialization when there are no ports attached. Therefore the ports list is guarenteed to be empty and this code will never be executed. Signed-off-by: Kenneth Williams <ken@williamsclan.us> Acked-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b1e8bc617d
commit
e350a96ec9
1 changed files with 0 additions and 7 deletions
|
@ -176,7 +176,6 @@ static int __team_option_inst_add(struct team *team, struct team_option *option,
|
|||
static int __team_option_inst_add_option(struct team *team,
|
||||
struct team_option *option)
|
||||
{
|
||||
struct team_port *port;
|
||||
int err;
|
||||
|
||||
if (!option->per_port) {
|
||||
|
@ -184,12 +183,6 @@ static int __team_option_inst_add_option(struct team *team,
|
|||
if (err)
|
||||
goto inst_del_option;
|
||||
}
|
||||
|
||||
list_for_each_entry(port, &team->port_list, list) {
|
||||
err = __team_option_inst_add(team, option, port);
|
||||
if (err)
|
||||
goto inst_del_option;
|
||||
}
|
||||
return 0;
|
||||
|
||||
inst_del_option:
|
||||
|
|
Loading…
Reference in a new issue