[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/7] Remove unnecessary casts from PCI DMA code in P
From: |
David Gibson |
Subject: |
[Qemu-devel] [PATCH 3/7] Remove unnecessary casts from PCI DMA code in PCI IDE |
Date: |
Fri, 4 Nov 2011 12:03:34 +1100 |
This patch removes some unnecessary casts in the PCI IDE device,
introduced by commit 552908fef5b67ad9d96b76d7cb8371ebc26c9bc8
'PCI IDE: Use PCI DMA stub functions'.
Signed-off-by: David Gibson <address@hidden>
---
hw/ide/pci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
index 49b823d..07d2cfa 100644
--- a/hw/ide/pci.c
+++ b/hw/ide/pci.c
@@ -71,7 +71,7 @@ static int bmdma_prepare_buf(IDEDMA *dma, int is_write)
if (bm->cur_prd_last ||
(bm->cur_addr - bm->addr) >= BMDMA_PAGE_SIZE)
return s->io_buffer_size != 0;
- pci_dma_read(&bm->pci_dev->dev, bm->cur_addr, (uint8_t *)&prd, 8);
+ pci_dma_read(&bm->pci_dev->dev, bm->cur_addr, &prd, 8);
bm->cur_addr += 8;
prd.addr = le32_to_cpu(prd.addr);
prd.size = le32_to_cpu(prd.size);
@@ -113,7 +113,7 @@ static int bmdma_rw_buf(IDEDMA *dma, int is_write)
if (bm->cur_prd_last ||
(bm->cur_addr - bm->addr) >= BMDMA_PAGE_SIZE)
return 0;
- pci_dma_read(&bm->pci_dev->dev, bm->cur_addr, (uint8_t *)&prd, 8);
+ pci_dma_read(&bm->pci_dev->dev, bm->cur_addr, &prd, 8);
bm->cur_addr += 8;
prd.addr = le32_to_cpu(prd.addr);
prd.size = le32_to_cpu(prd.size);
--
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 <=
- [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