From c92331bf04598445230e9abb5e293dacc6904240 Mon Sep 17 00:00:00 2001 From: Bernhard Beschow Date: Sun, 12 Jun 2022 21:28:00 +0200 Subject: hw/pci-host/i440fx: Remove unused parameter from i440fx_init() pi440fx_state is an out-parameter which is never read by the caller. Signed-off-by: Bernhard Beschow Reviewed-by: Mark Cave-Ayland Message-Id: <20220612192800.40813-1-shentey@gmail.com> Signed-off-by: Laurent Vivier --- hw/pci-host/i440fx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hw/pci-host') diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c index e087161..1c5ad5f 100644 --- a/hw/pci-host/i440fx.c +++ b/hw/pci-host/i440fx.c @@ -238,7 +238,6 @@ static void i440fx_realize(PCIDevice *dev, Error **errp) } PCIBus *i440fx_init(const char *host_type, const char *pci_type, - PCII440FXState **pi440fx_state, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, ram_addr_t ram_size, @@ -264,8 +263,7 @@ PCIBus *i440fx_init(const char *host_type, const char *pci_type, sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); d = pci_create_simple(b, 0, pci_type); - *pi440fx_state = I440FX_PCI_DEVICE(d); - f = *pi440fx_state; + f = I440FX_PCI_DEVICE(d); f->system_memory = address_space_mem; f->pci_address_space = pci_address_space; f->ram_memory = ram_memory; -- cgit v1.1