summaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2012-11-16 10:47:40 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 13:57:28 -0800
commit9967bd4842b39eaf632f77028fdd798775fd9686 (patch)
tree0c4af1285710b565da9a49e187401aee23d58fa7 /drivers/staging/et131x
parent823bb2e8e1df99a28977f212975562b30f8dfd5e (diff)
downloadblackbird-op-linux-9967bd4842b39eaf632f77028fdd798775fd9686.tar.gz
blackbird-op-linux-9967bd4842b39eaf632f77028fdd798775fd9686.zip
staging: et131x: Remove incorrect comments regarding alignment
A previous change removed code that aligned memory returned from dma_alloc_coherent() to a 4k boundary, which was not necessary. Some comments regarding this alignment still exist, so remove them as they no longer apply. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x')
-rw-r--r--drivers/staging/et131x/et131x.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index 9ccd9b7f2fbe..703a874996aa 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -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],
@@ -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,
OpenPOWER on IntegriCloud