cmd646: Remove unused variable
authorBALATON Zoltan <balaton@eik.bme.hu>
Fri, 25 Jan 2019 19:52:11 +0000 (14:52 -0500)
committerJohn Snow <jsnow@redhat.com>
Fri, 25 Jan 2019 19:52:11 +0000 (14:52 -0500)
There was a pointer to PCIIDEState in CMD646BAR which was set but
not used afterwards. Get rid of this unused variable.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1e352f091aa601fb2e19771aac46529fe278dd91.1547166960.git.balaton@eik.bme.hu
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/cmd646.c
include/hw/ide/pci.h

index 6bb92d717fbdba560978e27ff31e13fdaae1a6e3..41c1831f9a876fe27815bac53dfc3380b69e85fe 100644 (file)
@@ -123,7 +123,6 @@ static void setup_cmd646_bar(PCIIDEState *d, int bus_num)
     CMD646BAR *bar = &d->cmd646_bar[bus_num];
 
     bar->bus = bus;
-    bar->pci_dev = d;
     memory_region_init_io(&bar->cmd, OBJECT(d), &cmd646_cmd_ops, bar,
                           "cmd646-cmd", 4);
     memory_region_init_io(&bar->data, OBJECT(d), &cmd646_data_ops, bar,
index dbc6a0383dd64b5c9ee34cc0aa0dd4b84f8a88be..ed723acfb472cae0b3c1ffae09aeec23f339ac37 100644 (file)
@@ -41,7 +41,6 @@ typedef struct CMD646BAR {
     MemoryRegion cmd;
     MemoryRegion data;
     IDEBus *bus;
-    struct PCIIDEState *pci_dev;
 } CMD646BAR;
 
 #define TYPE_PCI_IDE "pci-ide"