aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00usb.c
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@wingerd.gvw.nl>2008-06-06 16:54:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:17:56 -0400
commitd56d453a1dd85aff08fe6965f395049725fdb04e (patch)
tree4dcb94a3cb301fc8c4dcd3892487233f64dcb7af /drivers/net/wireless/rt2x00/rt2x00usb.c
parentb869767b6f5049f1d1ede2bb3e48832e0722ca5a (diff)
rt2x00: Cleanup struct skb_frame_desc.
The data and data_len fields aren't really necessary in struct skb_frame_desc, as they can be deduced from the skb itself. Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00usb.c3
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 /*