Move source tree closer to the 2.6.32.17 mainline
/drivers/net/wireless/p54/txrx.c
blob:b6dda2b27fb526cda78fe1f07d59808c8a84bbbf -> blob:9d147ded8741556e81124497c196d480c8b17dc5
--- drivers/net/wireless/p54/txrx.c
+++ drivers/net/wireless/p54/txrx.c
@@ -186,7 +186,7 @@ static int p54_tx_qos_accounting_alloc(s
struct ieee80211_tx_queue_stats *queue;
unsigned long flags;
- if (WARN_ON(p54_queue > P54_QUEUE_NUM))
+ if (WARN_ON(p54_queue >= P54_QUEUE_NUM))
return -EINVAL;
queue = &priv->tx_stats[p54_queue];