]> git.baikalelectronics.ru Git - kernel.git/commit
team: Remove dead code
authorKenneth Williams <ken@williamsclan.us>
Mon, 12 Jan 2015 00:43:54 +0000 (16:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 22:02:04 +0000 (17:02 -0500)
commita252ab52f45edb9c4db625dcac8dae454d9df244
tree35db08099249b19ef343d00efb9e97445b893e15
parentefe40f78bdae362b41ab22234cfec1ec7b7e402e
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>
drivers/net/team/team.c