aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/airo.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-07-13 19:11:44 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-07-13 19:11:44 -0400
commit08cd84c81f27d5bd22ba958b7cae6d566c509280 (patch)
tree6fdb546c151410851fd3c604d42590afa4215084 /drivers/net/wireless/airo.c
parente9dd2561793c05d70c9df1bc16a2dde6f23388df (diff)
parent327309e899662b482c58cf25f574513d38b5788c (diff)
Merge /spare/repo/netdev-2.6 branch 'ieee80211'
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r--drivers/net/wireless/airo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 758b48ba65ce..6110187668dc 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -2381,7 +2381,7 @@ void stop_airo_card( struct net_device *dev, int freeres )
2381 /* 2381 /*
2382 * Clean out tx queue 2382 * Clean out tx queue
2383 */ 2383 */
2384 if (test_bit(FLAG_MPI, &ai->flags) && skb_queue_len (&ai->txq) > 0) { 2384 if (test_bit(FLAG_MPI, &ai->flags) && !skb_queue_empty(&ai->txq)) {
2385 struct sk_buff *skb = NULL; 2385 struct sk_buff *skb = NULL;
2386 for (;(skb = skb_dequeue(&ai->txq));) 2386 for (;(skb = skb_dequeue(&ai->txq));)
2387 dev_kfree_skb(skb); 2387 dev_kfree_skb(skb);
@@ -3294,7 +3294,7 @@ exitrx:
3294 if (status & EV_TXEXC) 3294 if (status & EV_TXEXC)
3295 get_tx_error(apriv, -1); 3295 get_tx_error(apriv, -1);
3296 spin_lock_irqsave(&apriv->aux_lock, flags); 3296 spin_lock_irqsave(&apriv->aux_lock, flags);
3297 if (skb_queue_len (&apriv->txq)) { 3297 if (!skb_queue_empty(&apriv->txq)) {
3298 spin_unlock_irqrestore(&apriv->aux_lock,flags); 3298 spin_unlock_irqrestore(&apriv->aux_lock,flags);
3299 mpi_send_packet (dev); 3299 mpi_send_packet (dev);
3300 } else { 3300 } else {