diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2008-06-03 14:29:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:17:55 -0400 |
commit | 70249816a87b3c2293dc7b33331e614c67666336 (patch) | |
tree | b55ba008914606f338f338b85959c0009e8c902f /drivers | |
parent | 772a249d3348e06427ccd790a989f59cc67574f6 (diff) |
rt2x00: Removed unused descriptor read in txdone
rt2x00usb doesn't need the TX descriptor in the TX done path.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 52d12fdc0ccf..66f15e6c7d25 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -130,16 +130,12 @@ static void rt2x00usb_interrupt_txdone(struct urb *urb) | |||
130 | struct queue_entry *entry = (struct queue_entry *)urb->context; | 130 | struct queue_entry *entry = (struct queue_entry *)urb->context; |
131 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; | 131 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; |
132 | struct txdone_entry_desc txdesc; | 132 | struct txdone_entry_desc txdesc; |
133 | __le32 *txd = (__le32 *)entry->skb->data; | ||
134 | enum data_queue_qid qid = skb_get_queue_mapping(entry->skb); | 133 | enum data_queue_qid qid = skb_get_queue_mapping(entry->skb); |
135 | u32 word; | ||
136 | 134 | ||
137 | if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags) || | 135 | if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags) || |
138 | !__test_and_clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags)) | 136 | !__test_and_clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags)) |
139 | return; | 137 | return; |
140 | 138 | ||
141 | rt2x00_desc_read(txd, 0, &word); | ||
142 | |||
143 | /* | 139 | /* |
144 | * Remove the descriptor data from the buffer. | 140 | * Remove the descriptor data from the buffer. |
145 | */ | 141 | */ |