[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] cmd646: Remove unused variable
From: |
BALATON Zoltan |
Subject: |
[Qemu-devel] [PATCH 1/5] cmd646: Remove unused variable |
Date: |
Fri, 11 Jan 2019 01:36:00 +0100 |
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 <address@hidden>
---
hw/ide/cmd646.c | 1 -
include/hw/ide/pci.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c
index 6bb92d717f..41c1831f9a 100644
--- a/hw/ide/cmd646.c
+++ b/hw/ide/cmd646.c
@@ -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,
diff --git a/include/hw/ide/pci.h b/include/hw/ide/pci.h
index dbc6a0383d..ed723acfb4 100644
--- a/include/hw/ide/pci.h
+++ b/include/hw/ide/pci.h
@@ -41,7 +41,6 @@ typedef struct CMD646BAR {
MemoryRegion cmd;
MemoryRegion data;
IDEBus *bus;
- struct PCIIDEState *pci_dev;
} CMD646BAR;
#define TYPE_PCI_IDE "pci-ide"
--
2.13.7
- [Qemu-devel] [PATCH 0/5] Refactor common PCI IDE functions from CMD646, BALATON Zoltan, 2019/01/10
- [Qemu-devel] [PATCH 2/5] cmd646: Remove IDEBus from CMD646BAR, BALATON Zoltan, 2019/01/10
- [Qemu-devel] [PATCH 1/5] cmd646: Remove unused variable,
BALATON Zoltan <=
- [Qemu-devel] [PATCH 3/5] cmd646: Move PCI IDE specific functions to ide/pci.c, BALATON Zoltan, 2019/01/10
- [Qemu-devel] [PATCH 5/5] sii3112: Remove duplicated code and use PCI IDE ops instead, BALATON Zoltan, 2019/01/10
- [Qemu-devel] [PATCH 4/5] ide: Get rid of CMD646BAR struct, BALATON Zoltan, 2019/01/10
- Re: [Qemu-devel] [PATCH 0/5] Refactor common PCI IDE functions from CMD646, John Snow, 2019/01/15
- Re: [Qemu-devel] [PATCH 0/5] Refactor common PCI IDE functions from CMD646, Mark Cave-Ayland, 2019/01/18
- Re: [Qemu-devel] [PATCH 0/5] Refactor common PCI IDE functions from CMD646, John Snow, 2019/01/21
- Re: [Qemu-devel] [PATCH 0/5] Refactor common PCI IDE functions from CMD646, John Snow, 2019/01/23