projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11f818e
)
rt2x00: Make use of unlikely during tx status processing
author
Helmut Schaa
<
[email protected]
>
Thu, 3 Mar 2011 18:39:27 +0000
(19:39 +0100)
committer
John W. Linville
<
[email protected]
>
Fri, 4 Mar 2011 19:06:46 +0000
(14:06 -0500)
These conditions are unlikely to happen, tell the compiler.
Signed-off-by: Helmut Schaa <
[email protected]
>
Signed-off-by: Ivo van Doorn <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/rt2x00/rt2800pci.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rt2x00/rt2800pci.c
b/drivers/net/wireless/rt2x00/rt2800pci.c
index 5b53d005559bf2312df97a9a4b975b4252d1b28c..046a7b7d1241f434085929ff7fa23653963352d9 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/
drivers/net/wireless/rt2x00/rt2800pci.c
@@
-726,7
+726,7
@@
static void rt2800pci_txdone(struct rt2x00_dev *rt2x00dev)
while (kfifo_get(&rt2x00dev->txstatus_fifo, &status)) {
qid = rt2x00_get_field32(status, TX_STA_FIFO_PID_QUEUE);
- if (
qid >= QID_RX
) {
+ if (
unlikely(qid >= QID_RX)
) {
/*
* Unknown queue, this shouldn't happen. Just drop
* this tx status.
@@
-747,7
+747,7
@@
static void rt2800pci_txdone(struct rt2x00_dev *rt2x00dev)
break;
}
- if (
rt2x00queue_empty(queue
)) {
+ if (
unlikely(rt2x00queue_empty(queue)
)) {
/*
* The queue is empty. Stop processing here
* and drop the tx status.