aboutsummaryrefslogtreecommitdiffstats
path: root/hw/pcnet.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-24 18:42:58 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:47:00 -0500
commit9fdab57bed7799b33c79f1f11394b2f9938b6ca0 (patch)
tree5241c3d89312eb7a990e2409c378b72eaca7a5b3 /hw/pcnet.c
parent1f235a737bb26486cafcb106fa3aa531a407a6c3 (diff)
pcnet: remove useless casts This are casts to the very type of the function
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pcnet.c')
-rw-r--r--hw/pcnet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index 9bcd3ccff..2240e30c9 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,