Patchwork [24/26] pcnet: remove useless casts This are casts to the very type of the function

login
register
mail settings
Submitter Juan Quintela
Date Aug. 24, 2009, 4:42 p.m.
Message ID <0c3550e51d47e8edd1ec9cd9d309c5681045a721.1251131364.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31988/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 24, 2009, 4:42 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/pcnet.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

Patch

diff --git a/hw/pcnet.c b/hw/pcnet.c
index 23a577e..d5be673 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -1964,15 +1964,15 @@  static void pcnet_common_init(DeviceState *dev, PCNetState *s,
 /* PCI interface */

 static CPUWriteMemoryFunc *pcnet_mmio_write[] = {
-    (CPUWriteMemoryFunc *)&pcnet_mmio_writeb,
-    (CPUWriteMemoryFunc *)&pcnet_mmio_writew,
-    (CPUWriteMemoryFunc *)&pcnet_mmio_writel
+    &pcnet_mmio_writeb,
+    &pcnet_mmio_writew,
+    &pcnet_mmio_writel
 };

 static CPUReadMemoryFunc *pcnet_mmio_read[] = {
-    (CPUReadMemoryFunc *)&pcnet_mmio_readb,
-    (CPUReadMemoryFunc *)&pcnet_mmio_readw,
-    (CPUReadMemoryFunc *)&pcnet_mmio_readl
+    &pcnet_mmio_readb,
+    &pcnet_mmio_readw,
+    &pcnet_mmio_readl
 };

 static void pcnet_mmio_map(PCIDevice *pci_dev, int region_num,