aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 1933113d7baf..86ded4066f5b 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1140,15 +1140,12 @@ static void rt2500usb_fill_rxdone(struct data_entry *entry,
1140 desc->my_bss = !!rt2x00_get_field32(word0, RXD_W0_MY_BSS); 1140 desc->my_bss = !!rt2x00_get_field32(word0, RXD_W0_MY_BSS);
1141 1141
1142 /* 1142 /*
1143 * Trim the skb to clear the descriptor area.
1144 */
1145 skb_pull(entry->skb, entry->ring->desc_size);
1146
1147 /*
1148 * Set descriptor and data pointer. 1143 * Set descriptor and data pointer.
1149 */ 1144 */
1150 skbdesc->desc = entry->skb->data + skbdesc->data_len; 1145 skbdesc->desc = entry->skb->data + desc->size;
1146 skbdesc->desc_len = entry->ring->desc_size;
1151 skbdesc->data = entry->skb->data; 1147 skbdesc->data = entry->skb->data;
1148 skbdesc->data_len = desc->size;
1152} 1149}
1153 1150
1154/* 1151/*