diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-04-10 18:34:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-13 13:31:00 -0400 |
commit | efacb309b50073a79ae604949a31509cd8b507ab (patch) | |
tree | 98fa69062e8e0cbaecbe069f9fef18f1917e1e65 /net | |
parent | 302846e3a692131a99b462078fe232ca2927b9d3 (diff) | |
download | op-kernel-dev-efacb309b50073a79ae604949a31509cd8b507ab.zip op-kernel-dev-efacb309b50073a79ae604949a31509cd8b507ab.tar.gz |
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 'net')
-rw-r--r-- | net/core/rtnetlink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 545a969..4a0d8cf 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -1640,14 +1640,14 @@ struct net_device *rtnl_create_link(struct net *src_net, struct net *net, int err; struct net_device *dev; unsigned int num_queues = 1; - unsigned int real_num_queues = 1; if (ops->get_tx_queues) { - err = ops->get_tx_queues(src_net, tb, &num_queues, - &real_num_queues); - if (err) + err = ops->get_tx_queues(src_net, tb); + if (err < 0) goto err; + num_queues = err; } + err = -ENOMEM; dev = alloc_netdev_mq(ops->priv_size, ifname, ops->setup, num_queues); if (!dev) |