summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-03-10 22:32:36 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 12:24:43 -0700
commitdb386800613060757d511fa60e11fc5f3c7fd5d5 (patch)
tree172978067ad40758d7384278ac7486c81f75f380 /drivers/staging/rtl8192e
parenta78275349ceca6dea754ddaa0ef85ab636af57c1 (diff)
downloadblackbird-op-linux-db386800613060757d511fa60e11fc5f3c7fd5d5.tar.gz
blackbird-op-linux-db386800613060757d511fa60e11fc5f3c7fd5d5.zip
staging: rtl8192e: Use better loop counter name
Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r--drivers/staging/rtl8192e/r8192E_core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/rtl8192e/r8192E_core.c b/drivers/staging/rtl8192e/r8192E_core.c
index 3877ce57d40a..9896a5de6b00 100644
--- a/drivers/staging/rtl8192e/r8192E_core.c
+++ b/drivers/staging/rtl8192e/r8192E_core.c
@@ -4310,15 +4310,15 @@ static void rtl8192_tx_resume(struct r8192_priv *priv)
struct ieee80211_device *ieee = priv->ieee80211;
struct net_device *dev = priv->ieee80211->dev;
struct sk_buff *skb;
- int queue_index;
+ int i;
- for(queue_index = BK_QUEUE; queue_index < TXCMD_QUEUE;queue_index++) {
- while((!skb_queue_empty(&ieee->skb_waitQ[queue_index]))&&
- (priv->ieee80211->check_nic_enough_desc(dev,queue_index) > 0)) {
+ for (i = BK_QUEUE; i < TXCMD_QUEUE; i++) {
+ while ((!skb_queue_empty(&ieee->skb_waitQ[i])) &&
+ (priv->ieee80211->check_nic_enough_desc(dev, i) > 0)) {
/* 1. dequeue the packet from the wait queue */
- skb = skb_dequeue(&ieee->skb_waitQ[queue_index]);
+ skb = skb_dequeue(&ieee->skb_waitQ[i]);
/* 2. tx the packet directly */
- ieee->softmac_data_hard_start_xmit(skb,dev,0/* rate useless now*/);
+ ieee->softmac_data_hard_start_xmit(skb, dev, 0);
}
}
}
OpenPOWER on IntegriCloud