[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/7] Remove unnecessary casts from PCI DMA code in r
From: |
David Gibson |
Subject: |
[Qemu-devel] [PATCH 5/7] Remove unnecessary casts from PCI DMA code in rtl8139 |
Date: |
Fri, 4 Nov 2011 12:03:36 +1100 |
This patch removes some unnecessary casts in the rtl8139 device,
introduced by commit 3ada003aee2004d24f23b9cd6f4eda87d9601ddb
'rtl8139: Use PCI DMA stub functions'.
Signed-off-by: David Gibson <address@hidden>
---
hw/rtl8139.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index 4c37993..30a7eb6 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -991,13 +991,13 @@ static ssize_t rtl8139_do_receive(VLANClientState *nc,
const uint8_t *buf, size_
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);
- 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);
- 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);
- 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);
DPRINTF("+++ C+ mode RX descriptor %d %08x %08x %08x %08x\n",
--
1.7.7
- [Qemu-devel] [0/7] Remove unnecessary casts introduced by PCI DMA stubs series, David Gibson, 2011/11/03
- [Qemu-devel] [PATCH 2/7] Remove unnecessary casts from PCI DMA code in e1000, David Gibson, 2011/11/03
- [Qemu-devel] [PATCH 7/7] Remove unnecessary casts from PCI DMA code in usb-uhci, David Gibson, 2011/11/03
- [Qemu-devel] [PATCH 1/7] Remove unnecessary casts from PCI DMA code in eepro100, David Gibson, 2011/11/03
- [Qemu-devel] [PATCH 5/7] Remove unnecessary casts from PCI DMA code in rtl8139,
David Gibson <=
- [Qemu-devel] [PATCH 3/7] Remove unnecessary casts from PCI DMA code in PCI IDE, David Gibson, 2011/11/03
- [Qemu-devel] [PATCH 6/7] Remove unnecessary casts from PCI DMA code in usb-ehci, David Gibson, 2011/11/03
- [Qemu-devel] [PATCH 4/7] Remove unnecessary casts from PCI DMA code in lsi53c895a, David Gibson, 2011/11/03
- Re: [Qemu-devel] [0/7] Remove unnecessary casts introduced by PCI DMA stubs series, Andreas Färber, 2011/11/04