diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 2cb25ea13c52..dbf501ca317f 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -538,12 +538,11 @@ static void rt2800usb_txdone(struct rt2x00_dev *rt2x00dev) | |||
538 | entry = rt2x00queue_get_entry(queue, Q_INDEX_DONE); | 538 | entry = rt2x00queue_get_entry(queue, Q_INDEX_DONE); |
539 | if (rt2800usb_txdone_entry_check(entry, reg)) | 539 | if (rt2800usb_txdone_entry_check(entry, reg)) |
540 | break; | 540 | break; |
541 | entry = NULL; | ||
541 | } | 542 | } |
542 | 543 | ||
543 | if (!entry || rt2x00queue_empty(queue)) | 544 | if (entry) |
544 | break; | 545 | rt2800_txdone_entry(entry, reg); |
545 | |||
546 | rt2800_txdone_entry(entry, reg); | ||
547 | } | 546 | } |
548 | } | 547 | } |
549 | 548 | ||