pcnet: remove useless casts This are casts to the very type of the function
authorJuan Quintela <quintela@redhat.com>
Mon, 24 Aug 2009 16:42:58 +0000 (18:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 01:47:00 +0000 (20:47 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pcnet.c

index 9bcd3ccff9709bca644099ec9d44ffcddaf0625a..2240e30c90c20ab35bfd6811dc892706003c8bf4 100644 (file)
@@ -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,