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>
This commit is contained in:
Juan Quintela 2009-08-24 18:42:58 +02:00 committed by Anthony Liguori
parent 1f235a737b
commit 9fdab57bed

View 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,