diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-04-10 14:34:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-13 13:31:00 -0400 |
commit | efacb309b50073a79ae604949a31509cd8b507ab (patch) | |
tree | 98fa69062e8e0cbaecbe069f9fef18f1917e1e65 /drivers/net/bonding | |
parent | 302846e3a692131a99b462078fe232ca2927b9d3 (diff) |
rtnetlink & bonding: change args got get_tx_queues
Change get_tx_queues, drop unsused arg/return value real_tx_queues,
and use return by value (with error) rather than call by reference.
Probably bonding should just change to LLTX and the whole get_tx_queues
API could disappear!
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 62d2409bb293..53ee6a0a3681 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -4820,12 +4820,9 @@ static int bond_validate(struct nlattr *tb[], struct nlattr *data[]) | |||
4820 | return 0; | 4820 | return 0; |
4821 | } | 4821 | } |
4822 | 4822 | ||
4823 | static int bond_get_tx_queues(struct net *net, struct nlattr *tb[], | 4823 | static int bond_get_tx_queues(struct net *net, const struct nlattr *tb[]) |
4824 | unsigned int *num_queues, | ||
4825 | unsigned int *real_num_queues) | ||
4826 | { | 4824 | { |
4827 | *num_queues = tx_queues; | 4825 | return tx_queues; |
4828 | return 0; | ||
4829 | } | 4826 | } |
4830 | 4827 | ||
4831 | static struct rtnl_link_ops bond_link_ops __read_mostly = { | 4828 | static struct rtnl_link_ops bond_link_ops __read_mostly = { |