diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 8cf6e3f253e9..797023cad947 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -192,8 +192,6 @@ int rt2x00usb_write_tx_data(struct queue_entry *entry) | |||
192 | */ | 192 | */ |
193 | skbdesc = get_skb_frame_desc(entry->skb); | 193 | skbdesc = get_skb_frame_desc(entry->skb); |
194 | memset(skbdesc, 0, sizeof(*skbdesc)); | 194 | memset(skbdesc, 0, sizeof(*skbdesc)); |
195 | skbdesc->data = entry->skb->data + entry->queue->desc_size; | ||
196 | skbdesc->data_len = entry->skb->len - entry->queue->desc_size; | ||
197 | skbdesc->desc = entry->skb->data; | 195 | skbdesc->desc = entry->skb->data; |
198 | skbdesc->desc_len = entry->queue->desc_size; | 196 | skbdesc->desc_len = entry->queue->desc_size; |
199 | skbdesc->entry = entry; | 197 | skbdesc->entry = entry; |
@@ -352,7 +350,6 @@ static void rt2x00usb_interrupt_rxdone(struct urb *urb) | |||
352 | } | 350 | } |
353 | 351 | ||
354 | /* Update data pointers, trim buffer to correct size */ | 352 | /* Update data pointers, trim buffer to correct size */ |
355 | skbdesc->data = entry->skb->data; | ||
356 | skb_trim(entry->skb, rxdesc.size); | 353 | skb_trim(entry->skb, rxdesc.size); |
357 | 354 | ||
358 | /* | 355 | /* |