Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338041
b: refs/heads/master
c: 9967bd4
h: refs/heads/master
i:
  338039: 8587203
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent e47b19d commit e51c853
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 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: 823bb2e8e1df99a28977f212975562b30f8dfd5e
refs/heads/master: 9967bd4842b39eaf632f77028fdd798775fd9686
10 changes: 0 additions & 10 deletions trunk/drivers/staging/et131x/et131x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,13 +2310,6 @@ static int et131x_rx_dma_memory_alloc(struct et131x_adapter *adapter)
for (i = 0; i < (rx_ring->fbr[id]->num_entries / FBR_CHUNKS); i++) {
dma_addr_t fbr_tmp_physaddr;

/* This code allocates an area of memory big enough for
* N free buffers + (buffer_size - 1) so that the
* buffers can be aligned on 4k boundaries. If each
* buffer were aligned to a buffer_size boundary, the
* effect would be to double the size of FBR0. By
* allocating N buffers at once, we reduce this overhead
*/
rx_ring->fbr[id]->mem_virtaddrs[i] = dma_alloc_coherent(
&adapter->pdev->dev, fbr_chunksize,
&rx_ring->fbr[id]->mem_physaddrs[i],
Expand Down Expand Up @@ -2901,9 +2894,6 @@ static int et131x_tx_dma_memory_alloc(struct et131x_adapter *adapter)
return -ENOMEM;
}

/* Allocate enough memory for the Tx descriptor ring, and allocate
* some extra so that the ring can be aligned on a 4k boundary.
*/
desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX);
tx_ring->tx_desc_ring =
(struct tx_desc *) dma_alloc_coherent(&adapter->pdev->dev,
Expand Down

0 comments on commit e51c853

Please sign in to comment.