diff options
author | Li, Liang Z <liang.z.li@intel.com> | 2015-06-27 07:17:26 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-28 16:49:14 -0700 |
commit | 905726c1c5a3ca620ba7d73c78eddfb91de5ce28 (patch) | |
tree | b569b702c2a9dd0a9b941edf685147b1d16a47d9 /drivers | |
parent | 96ac5cc9636318e7d92e72a3f1032456152a3a2f (diff) | |
download | linux-stable-905726c1c5a3ca620ba7d73c78eddfb91de5ce28.tar.gz linux-stable-905726c1c5a3ca620ba7d73c78eddfb91de5ce28.tar.bz2 linux-stable-905726c1c5a3ca620ba7d73c78eddfb91de5ce28.zip |
xen-netfront: Remove the meaningless code
The function netif_set_real_num_tx_queues() will return -EINVAL if
the second parameter < 1, so call this function with the second
parameter set to 0 is meaningless.
Signed-off-by: Liang Li <liang.z.li@intel.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/xen-netfront.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 56d8afd11077..1807cd175a96 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -1245,10 +1245,6 @@ static struct net_device *xennet_create_dev(struct xenbus_device *dev) np = netdev_priv(netdev); np->xbdev = dev; - /* No need to use rtnl_lock() before the call below as it - * happens before register_netdev(). - */ - netif_set_real_num_tx_queues(netdev, 0); np->queues = NULL; err = -ENOMEM; @@ -1900,9 +1896,6 @@ abort_transaction_no_dev_fatal: xennet_disconnect_backend(info); kfree(info->queues); info->queues = NULL; - rtnl_lock(); - netif_set_real_num_tx_queues(info->netdev, 0); - rtnl_unlock(); out: return err; } |