Skip to content

Commit

Permalink
spapr: drop duplicate variable in spapr_core_release()
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Kurz <[email protected]>
Reviewed-by: Bharata B Rao <[email protected]>
Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
gkurz authored and dgibson committed Jul 1, 2016
1 parent f11235b commit 8a1eb71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hw/ppc/spapr_cpu_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ static void spapr_core_release(DeviceState *dev, void *opaque)
const char *typename = object_class_get_name(sc->cpu_class);
size_t size = object_type_get_instance_size(typename);
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(dev));
CPUCore *cc = CPU_CORE(dev);
int smt = kvmppc_smt_threads();
int i;
Expand All @@ -120,7 +119,7 @@ static void spapr_core_release(DeviceState *dev, void *opaque)

spapr->cores[cc->core_id / smt] = NULL;

g_free(core->threads);
g_free(sc->threads);
object_unparent(OBJECT(dev));
}

Expand Down

0 comments on commit 8a1eb71

Please sign in to comment.