Remove unnecessary casts from PCI DMA code in rtl8139

This patch removes some unnecessary casts in the rtl8139 device,
introduced by commit 3ada003aee
'rtl8139: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
David Gibson 2011-11-04 12:03:36 +11:00 committed by Anthony Liguori
parent 9e486d6765
commit a6a29eeaff

View File

@ -991,13 +991,13 @@ static ssize_t rtl8139_do_receive(VLANClientState *nc, const uint8_t *buf, size_
uint32_t val, rxdw0,rxdw1,rxbufLO,rxbufHI; uint32_t val, rxdw0,rxdw1,rxbufLO,rxbufHI;
pci_dma_read(&s->dev, cplus_rx_ring_desc, (uint8_t *)&val, 4); pci_dma_read(&s->dev, cplus_rx_ring_desc, &val, 4);
rxdw0 = le32_to_cpu(val); rxdw0 = le32_to_cpu(val);
pci_dma_read(&s->dev, cplus_rx_ring_desc+4, (uint8_t *)&val, 4); pci_dma_read(&s->dev, cplus_rx_ring_desc+4, &val, 4);
rxdw1 = le32_to_cpu(val); rxdw1 = le32_to_cpu(val);
pci_dma_read(&s->dev, cplus_rx_ring_desc+8, (uint8_t *)&val, 4); pci_dma_read(&s->dev, cplus_rx_ring_desc+8, &val, 4);
rxbufLO = le32_to_cpu(val); rxbufLO = le32_to_cpu(val);
pci_dma_read(&s->dev, cplus_rx_ring_desc+12, (uint8_t *)&val, 4); pci_dma_read(&s->dev, cplus_rx_ring_desc+12, &val, 4);
rxbufHI = le32_to_cpu(val); rxbufHI = le32_to_cpu(val);
DPRINTF("+++ C+ mode RX descriptor %d %08x %08x %08x %08x\n", DPRINTF("+++ C+ mode RX descriptor %d %08x %08x %08x %08x\n",