mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
Remove unnecessary casts from PCI DMA code in lsi53c895a
This patch removes some unnecessary casts in the lsi53c895a device,
introduced by commit 9ba4524cda
'lsi53c895a: 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:
parent
859e538d50
commit
9e486d6765
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user