]> Git Repo - qemu.git/commitdiff
pseries: Remove redundant calls to spapr_machine_initfn()
authorDavid Gibson <[email protected]>
Thu, 3 Dec 2015 06:34:20 +0000 (17:34 +1100)
committerDavid Gibson <[email protected]>
Mon, 11 Jan 2016 04:29:05 +0000 (15:29 +1100)
The instance_init() functions for several of the pseries-x.y versioned
machine types explicitly call spapr_machine_initfn().  But that's the
instance_init function for the common parent of all those machine types,
so will already have been called beforehand by the QOM infrastructure.

Remove the redundant calls.

Signed-off-by: David Gibson <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Alexey Kardashevskiy <[email protected]>
hw/ppc/spapr.c

index c126e10fa46d31b355de704aceb87a1fd92eb467..c7c65179c6d05a07ed7177b7a9c8f5568c88a0f9 100644 (file)
@@ -2366,7 +2366,6 @@ static void spapr_compat_2_3(Object *obj)
 static void spapr_machine_2_3_instance_init(Object *obj)
 {
     spapr_compat_2_3(obj);
-    spapr_machine_initfn(obj);
 }
 
 static void spapr_machine_2_3_class_init(ObjectClass *oc, void *data)
@@ -2409,7 +2408,6 @@ static void spapr_compat_2_2(Object *obj)
 static void spapr_machine_2_2_instance_init(Object *obj)
 {
     spapr_compat_2_2(obj);
-    spapr_machine_initfn(obj);
 }
 
 static void spapr_machine_2_2_class_init(ObjectClass *oc, void *data)
@@ -2446,7 +2444,6 @@ static void spapr_compat_2_1(Object *obj)
 static void spapr_machine_2_1_instance_init(Object *obj)
 {
     spapr_compat_2_1(obj);
-    spapr_machine_initfn(obj);
 }
 
 static void spapr_machine_2_1_class_init(ObjectClass *oc, void *data)
This page took 0.02468 seconds and 4 git commands to generate.