Skip to content

Commit

Permalink
staging: rtl8192u: fix spaces in array indexing in r8192U_core.c
Browse files Browse the repository at this point in the history
This patch fixes the following checkpatch error:
ERROR: space prohibited before open square bracket '['

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Xenia Ragiadakou authored and Greg Kroah-Hartman committed Jun 5, 2013
1 parent 57f9c1d commit b1753c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/rtl8192u/r8192U_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,11 @@ static void rtl8192_init_priv_variable(struct net_device *dev)

/* Tx related queue */
for (i = 0; i < MAX_QUEUE_SIZE; i++)
skb_queue_head_init(&priv->ieee80211->skb_waitQ [i]);
skb_queue_head_init(&priv->ieee80211->skb_waitQ[i]);
for (i = 0; i < MAX_QUEUE_SIZE; i++)
skb_queue_head_init(&priv->ieee80211->skb_aggQ [i]);
skb_queue_head_init(&priv->ieee80211->skb_aggQ[i]);
for (i = 0; i < MAX_QUEUE_SIZE; i++)
skb_queue_head_init(&priv->ieee80211->skb_drv_aggQ [i]);
skb_queue_head_init(&priv->ieee80211->skb_drv_aggQ[i]);
priv->rf_set_chan = rtl8192_phy_SwChnl;
}

Expand Down Expand Up @@ -3686,12 +3686,12 @@ int rtl8192_down(struct net_device *dev)

/* Tx related queue release */
for (i = 0; i < MAX_QUEUE_SIZE; i++)
skb_queue_purge(&priv->ieee80211->skb_waitQ [i]);
skb_queue_purge(&priv->ieee80211->skb_waitQ[i]);
for (i = 0; i < MAX_QUEUE_SIZE; i++)
skb_queue_purge(&priv->ieee80211->skb_aggQ [i]);
skb_queue_purge(&priv->ieee80211->skb_aggQ[i]);

for (i = 0; i < MAX_QUEUE_SIZE; i++)
skb_queue_purge(&priv->ieee80211->skb_drv_aggQ [i]);
skb_queue_purge(&priv->ieee80211->skb_drv_aggQ[i]);

//as cancel_delayed_work will del work->timer, so if work is not defined as struct delayed_work, it will corrupt
rtl8192_cancel_deferred_work(priv);
Expand Down

0 comments on commit b1753c4

Please sign in to comment.