[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/7] Remove unnecessary casts from PCI DMA code in l
From: |
David Gibson |
Subject: |
[Qemu-devel] [PATCH 4/7] Remove unnecessary casts from PCI DMA code in lsi53c895a |
Date: |
Fri, 4 Nov 2011 12:03:35 +1100 |
This patch removes some unnecessary casts in the lsi53c895a device,
introduced by commit 9ba4524cda1348cbe741535f77815dca6a57da05
'lsi53c895a: Use PCI DMA stub functions'.
Signed-off-by: David Gibson <address@hidden>
---
hw/lsi53c895a.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index fcc27d7..0d3a101 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -392,7 +392,7 @@ static inline uint32_t read_dword(LSIState *s, uint32_t
addr)
{
uint32_t buf;
- pci_dma_read(&s->dev, addr, (uint8_t *)&buf, 4);
+ pci_dma_read(&s->dev, addr, &buf, 4);
return cpu_to_le32(buf);
}
@@ -1079,7 +1079,7 @@ again:
/* 32-bit Table indirect */
offset = sxt24(addr);
- pci_dma_read(&s->dev, s->dsa + offset, (uint8_t *)buf, 8);
+ pci_dma_read(&s->dev, s->dsa + offset, buf, 8);
/* byte count is stored in bits 0:23 only */
s->dbc = cpu_to_le32(buf[0]) & 0xffffff;
s->rbc = s->dbc;
--
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, 2011/11/03
- [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 <=
- Re: [Qemu-devel] [0/7] Remove unnecessary casts introduced by PCI DMA stubs series, Andreas Färber, 2011/11/04