Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103181
b: refs/heads/master
c: 61243d8
h: refs/heads/master
i:
  103179: 468d8d3
v: v3
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Jun 27, 2008
1 parent 3bf1d30 commit 6c469bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 923fd7036ff04381b265037469c79a2e7d0d6b67
refs/heads/master: 61243d8e79de67d703b192fae2c4ab80fc0fac34
20 changes: 2 additions & 18 deletions trunk/drivers/net/wireless/rt2x00/rt2x00queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,7 @@ void rt2x00queue_unmap_skb(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb)

void rt2x00queue_free_skb(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb)
{
struct skb_frame_desc *skbdesc = get_skb_frame_desc(skb);

if (skbdesc->flags & SKBDESC_DMA_MAPPED_RX) {
dma_unmap_single(rt2x00dev->dev, skbdesc->skb_dma, skb->len,
DMA_FROM_DEVICE);
}

if (skbdesc->flags & SKBDESC_DMA_MAPPED_TX) {
dma_unmap_single(rt2x00dev->dev, skbdesc->skb_dma, skb->len,
DMA_TO_DEVICE);
}

rt2x00queue_unmap_skb(rt2x00dev, skb);
dev_kfree_skb_any(skb);
}

Expand Down Expand Up @@ -509,16 +498,11 @@ static int rt2x00queue_alloc_rxskbs(struct rt2x00_dev *rt2x00dev,
for (i = 0; i < queue->limit; i++) {
skb = rt2x00queue_alloc_rxskb(rt2x00dev, &queue->entries[i]);
if (!skb)
goto exit;
return -ENOMEM;
queue->entries[i].skb = skb;
}

return 0;

exit:
rt2x00queue_free_skbs(rt2x00dev, queue);

return -ENOMEM;
}

int rt2x00queue_initialize(struct rt2x00_dev *rt2x00dev)
Expand Down

0 comments on commit 6c469bc

Please sign in to comment.