mirror of
https://github.com/ipxe/ipxe
synced 2026-01-12 16:38:43 +03:00
[tg3] Fix compilation on newer gcc versions
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
f6840ba83e
commit
b5ed30b2d0
@@ -533,7 +533,7 @@ static int tg3_test_dma(struct tg3 *tp)
|
||||
{ DBGP("%s\n", __func__);
|
||||
|
||||
dma_addr_t buf_dma;
|
||||
u32 *buf, saved_dma_rwctrl;
|
||||
u32 *buf;
|
||||
int ret = 0;
|
||||
|
||||
buf = malloc_dma(TEST_BUFFER_SIZE, TG3_DMA_ALIGNMENT);
|
||||
@@ -624,7 +624,6 @@ static int tg3_test_dma(struct tg3 *tp)
|
||||
/* It is best to perform DMA test with maximum write burst size
|
||||
* to expose the 5700/5701 write DMA bug.
|
||||
*/
|
||||
saved_dma_rwctrl = tp->dma_rwctrl;
|
||||
tp->dma_rwctrl &= ~DMA_RWCTRL_WRITE_BNDRY_MASK;
|
||||
tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user