Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338039
b: refs/heads/master
c: 1a2bd6b
h: refs/heads/master
i:
  338037: 6f977d2
  338035: fa52b6d
  338031: b6105c7
v: v3
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent fef8f2e commit 8587203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 15ffde4d36c30d81cd04a154960608486a1464f4
refs/heads/master: 1a2bd6b257592cc05e9dd3d36e5810466a075fc3
6 changes: 2 additions & 4 deletions trunk/drivers/staging/et131x/et131x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2291,8 +2291,7 @@ static int et131x_rx_dma_memory_alloc(struct et131x_adapter *adapter)

for (id = 0; id < NUM_FBRS; id++) {
/* Allocate an area of memory for Free Buffer Ring */
bufsize = (sizeof(struct fbr_desc) *
rx_ring->fbr[id]->num_entries) + 0xfff;
bufsize = (sizeof(struct fbr_desc) * rx_ring->fbr[id]->num_entries);
rx_ring->fbr[id]->ring_virtaddr =
dma_alloc_coherent(&adapter->pdev->dev,
bufsize,
Expand Down Expand Up @@ -2463,8 +2462,7 @@ static void et131x_rx_dma_memory_free(struct et131x_adapter *adapter)
}

bufsize =
(sizeof(struct fbr_desc) * rx_ring->fbr[id]->num_entries) +
0xfff;
sizeof(struct fbr_desc) * rx_ring->fbr[id]->num_entries;

dma_free_coherent(&adapter->pdev->dev, bufsize,
rx_ring->fbr[id]->ring_virtaddr,
Expand Down

0 comments on commit 8587203

Please sign in to comment.