diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-06-12 21:28:00 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-06-28 11:10:33 +0200 |
commit | c92331bf04598445230e9abb5e293dacc6904240 (patch) | |
tree | 24d6f32fbd3d8530ef08ae4fb1411331b21c7cc9 /hw/pci-host | |
parent | 1a7fc0447e6312c5be2ba9cf7d11bac6caeda98b (diff) |
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 <shentey@gmail.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220612192800.40813-1-shentey@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/pci-host')
-rw-r--r-- | hw/pci-host/i440fx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c index e08716142b..1c5ad5f918 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; |