[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/5] spapr: Drop spapr_delete_vcpu() unused argument
From: |
Greg Kurz |
Subject: |
[PATCH v2 3/5] spapr: Drop spapr_delete_vcpu() unused argument |
Date: |
Thu, 15 Oct 2020 23:18:39 +0200 |
User-agent: |
StGit/0.21 |
The 'sc' argument is unused. Drop it.
Signed-off-by: Greg Kurz <groug@kaod.org>
---
hw/ppc/spapr_cpu_core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
index e4aeb93c0299..45eb2121876e 100644
--- a/hw/ppc/spapr_cpu_core.c
+++ b/hw/ppc/spapr_cpu_core.c
@@ -212,7 +212,7 @@ static void spapr_cpu_core_reset_handler(void *opaque)
spapr_cpu_core_reset(opaque);
}
-static void spapr_delete_vcpu(PowerPCCPU *cpu, SpaprCpuCore *sc)
+static void spapr_delete_vcpu(PowerPCCPU *cpu)
{
SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu);
@@ -233,7 +233,7 @@ static void spapr_cpu_core_unrealize(DeviceState *dev)
spapr_unrealize_vcpu(sc->threads[i], sc);
}
for (i = 0; i < cc->nr_threads; i++) {
- spapr_delete_vcpu(sc->threads[i], sc);
+ spapr_delete_vcpu(sc->threads[i]);
}
g_free(sc->threads);
}
@@ -345,7 +345,7 @@ err_unrealize:
}
err:
while (--i >= 0) {
- spapr_delete_vcpu(sc->threads[i], sc);
+ spapr_delete_vcpu(sc->threads[i]);
}
g_free(sc->threads);
}
- [PATCH v2 0/5] spapr: Fix and cleanups for sPAPR CPU core, Greg Kurz, 2020/10/15
- [PATCH v2 3/5] spapr: Drop spapr_delete_vcpu() unused argument,
Greg Kurz <=
- [PATCH v2 4/5] spapr: Make spapr_cpu_core_unrealize() idempotent, Greg Kurz, 2020/10/15
- [PATCH v2 2/5] spapr: Unrealize vCPUs with qdev_unrealize(), Greg Kurz, 2020/10/15
- [PATCH v2 1/5] spapr: Fix leak of CPU machine specific data, Greg Kurz, 2020/10/15
- [PATCH v2 5/5] spapr: Simplify spapr_cpu_core_realize() and spapr_cpu_core_unrealize(), Greg Kurz, 2020/10/15
- Re: [PATCH v2 0/5] spapr: Fix and cleanups for sPAPR CPU core, David Gibson, 2020/10/22