]> err.no Git - linux-2.6/commitdiff
rt2x00: Removed unused descriptor read in txdone
authorIvo van Doorn <IvDoorn@gmail.com>
Tue, 3 Jun 2008 18:29:54 +0000 (20:29 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:17:55 +0000 (12:17 -0400)
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>
drivers/net/wireless/rt2x00/rt2x00usb.c

index 52d12fdc0ccf2f7a5dac92e17511a13e19896e2a..66f15e6c7d255f04aca3d91734b0142c35ff1f4c 100644 (file)
@@ -130,16 +130,12 @@ static void rt2x00usb_interrupt_txdone(struct urb *urb)
        struct queue_entry *entry = (struct queue_entry *)urb->context;
        struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;
        struct txdone_entry_desc txdesc;
-       __le32 *txd = (__le32 *)entry->skb->data;
        enum data_queue_qid qid = skb_get_queue_mapping(entry->skb);
-       u32 word;
 
        if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags) ||
            !__test_and_clear_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags))
                return;
 
-       rt2x00_desc_read(txd, 0, &word);
-
        /*
         * Remove the descriptor data from the buffer.
         */