diff options
author | Kenneth Williams <ken@williamsclan.us> | 2015-01-11 19:43:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-12 17:02:04 -0500 |
commit | e350a96ec9e6c74f06235ded93ef3155f71c6c6b (patch) | |
tree | 35db08099249b19ef343d00efb9e97445b893e15 /drivers | |
parent | b1e8bc617d30fc9360a58889f21a0d0ce982cf04 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/team/team.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 93e224217e24..43bcfff71d95 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c | |||
@@ -176,7 +176,6 @@ static int __team_option_inst_add(struct team *team, struct team_option *option, | |||
176 | static int __team_option_inst_add_option(struct team *team, | 176 | static int __team_option_inst_add_option(struct team *team, |
177 | struct team_option *option) | 177 | struct team_option *option) |
178 | { | 178 | { |
179 | struct team_port *port; | ||
180 | int err; | 179 | int err; |
181 | 180 | ||
182 | if (!option->per_port) { | 181 | if (!option->per_port) { |
@@ -184,12 +183,6 @@ static int __team_option_inst_add_option(struct team *team, | |||
184 | if (err) | 183 | if (err) |
185 | goto inst_del_option; | 184 | goto inst_del_option; |
186 | } | 185 | } |
187 | |||
188 | list_for_each_entry(port, &team->port_list, list) { | ||
189 | err = __team_option_inst_add(team, option, port); | ||
190 | if (err) | ||
191 | goto inst_del_option; | ||
192 | } | ||
193 | return 0; | 186 | return 0; |
194 | 187 | ||
195 | inst_del_option: | 188 | inst_del_option: |