提交 4ab07c96 编写于 作者: M Mark Einon 提交者: Greg Kroah-Hartman

staging: et131x: Remove unused buffer[1,2] variables.

The fbr_lookup struct variables buffer1 and buffer2 are only assigned
and never used, so remove them.
Signed-off-by: NMark Einon <mark.einon@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 60eebfad
......@@ -284,8 +284,6 @@ struct rx_status_block {
*/
struct fbr_lookup {
void *virt[MAX_DESC_PER_RING_RX];
void *buffer1[MAX_DESC_PER_RING_RX];
void *buffer2[MAX_DESC_PER_RING_RX];
u32 bus_high[MAX_DESC_PER_RING_RX];
u32 bus_low[MAX_DESC_PER_RING_RX];
void *ring_virtaddr;
......@@ -2405,11 +2403,6 @@ static int et131x_rx_dma_memory_alloc(struct et131x_adapter *adapter)
lower_32_bits(fbr_tmp_physaddr);
fbr_tmp_physaddr += rx_ring->fbr[id]->buffsize;
rx_ring->fbr[id]->buffer1[index] =
rx_ring->fbr[id]->virt[index];
rx_ring->fbr[id]->buffer2[index] =
rx_ring->fbr[id]->virt[index] - 4;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册