aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/pcnet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index 9bcd3ccff9..2240e30c90 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -1965,15 +1965,15 @@ static int pcnet_common_init(DeviceState *dev, PCNetState *s,
/* PCI interface */
static CPUWriteMemoryFunc * const pcnet_mmio_write[] = {
- (CPUWriteMemoryFunc * const )&pcnet_mmio_writeb,
- (CPUWriteMemoryFunc * const )&pcnet_mmio_writew,
- (CPUWriteMemoryFunc * const )&pcnet_mmio_writel
+ &pcnet_mmio_writeb,
+ &pcnet_mmio_writew,
+ &pcnet_mmio_writel
};
static CPUReadMemoryFunc * const pcnet_mmio_read[] = {
- (CPUReadMemoryFunc * const )&pcnet_mmio_readb,
- (CPUReadMemoryFunc * const )&pcnet_mmio_readw,
- (CPUReadMemoryFunc * const )&pcnet_mmio_readl
+ &pcnet_mmio_readb,
+ &pcnet_mmio_readw,
+ &pcnet_mmio_readl
};
static void pcnet_mmio_map(PCIDevice *pci_dev, int region_num,