team: init error value to 0 in team_netpoll_setup()
authorJiri Pirko <jiri@resnulli.us>
Tue, 24 Jul 2012 01:20:48 +0000 (01:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2012 20:54:15 +0000 (13:54 -0700)
commit3324d024ba4bebb74a78d84b925b59df73a92fbd
treef581c110d2698f4a15396b5ad50c25436f412966
parent9cb429d692b341e972b12e6cd097364050ebbb26
team: init error value to 0 in team_netpoll_setup()

This will ensure correct value is returned in case the port list is empty.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c