projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d1eab
)
rt2x00: Don't perform watchdog checks on empty queue
author
Ivo van Doorn
<ivdoorn@gmail.com>
Mon, 11 Oct 2010 13:39:04 +0000
(15:39 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 11 Oct 2010 19:04:26 +0000
(15:04 -0400)
The currently used watchdog functions cannot be applied
to empty queues.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rt2x00/rt2x00usb.c
b/drivers/net/wireless/rt2x00/rt2x00usb.c
index 769c53451b211629cd206231749c169472884f48..89d77f55d76c4f29dc3d98ea17d70fd12b606132 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2x00usb.c
+++ b/
drivers/net/wireless/rt2x00/rt2x00usb.c
@@
-363,10
+363,12
@@
void rt2x00usb_watchdog(struct rt2x00_dev *rt2x00dev)
struct data_queue *queue;
tx_queue_for_each(rt2x00dev, queue) {
- if (rt2x00queue_dma_timeout(queue))
- rt2x00usb_watchdog_tx_dma(queue);
- if (rt2x00queue_timeout(queue))
- rt2x00usb_watchdog_tx_status(queue);
+ if (!rt2x00queue_empty(queue)) {
+ if (rt2x00queue_dma_timeout(queue))
+ rt2x00usb_watchdog_tx_dma(queue);
+ if (rt2x00queue_timeout(queue))
+ rt2x00usb_watchdog_tx_status(queue);
+ }
}
}
EXPORT_SYMBOL_GPL(rt2x00usb_watchdog);