Commit 1f1f19ff authored by Mike McCormack's avatar Mike McCormack Committed by Greg Kroah-Hartman

Staging: rtl8192e: Clean up rtl8192_pci_initdescring()

Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 067ba6cf
...@@ -1598,7 +1598,6 @@ static int rtl8192_alloc_tx_desc_ring(struct net_device *dev, ...@@ -1598,7 +1598,6 @@ static int rtl8192_alloc_tx_desc_ring(struct net_device *dev,
return 0; return 0;
} }
static short rtl8192_pci_initdescring(struct net_device *dev) static short rtl8192_pci_initdescring(struct net_device *dev)
{ {
u32 ret; u32 ret;
...@@ -1606,10 +1605,8 @@ static short rtl8192_pci_initdescring(struct net_device *dev) ...@@ -1606,10 +1605,8 @@ static short rtl8192_pci_initdescring(struct net_device *dev)
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
ret = rtl8192_alloc_rx_desc_ring(dev); ret = rtl8192_alloc_rx_desc_ring(dev);
if (ret) { if (ret)
return ret; return ret;
}
/* general process for other queue */ /* general process for other queue */
for (i = 0; i < MAX_TX_QUEUE_COUNT; i++) { for (i = 0; i < MAX_TX_QUEUE_COUNT; i++) {
...@@ -1618,13 +1615,6 @@ static short rtl8192_pci_initdescring(struct net_device *dev) ...@@ -1618,13 +1615,6 @@ static short rtl8192_pci_initdescring(struct net_device *dev)
goto err_free_rings; goto err_free_rings;
} }
#if 0
/* specific process for hardware beacon process */
ret = rtl8192_alloc_tx_desc_ring(dev, MAX_TX_QUEUE_COUNT - 1, 2);
if (ret)
goto err_free_rings;
#endif
return 0; return 0;
err_free_rings: err_free_rings:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment