Skip to contentSkip to conversation

hw/ppc/spapr: Remove duplicated "pseries" alias

PATCH Applied Thomas Huth 2 participants 2 messages Nov 23, 2015 – Nov 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/ppc/spapr: Remove duplicated "pseries" alias

The "pseries" alias is currently set twice, one time for the pseries-2.4 machine and one time for the "pseries-2.5" machine. To avoid confusion with the alias, let's remove the one from the older machine class. And while we're at it, also remove the "is_default = 0" there since the is_default variable should be set to zero by default already.

---
 hw/ppc/spapr.c | 2 --
 1 file changed, 2 deletions(-)
hw/ppc/spapr.c +0 -2
index 030ee35..32e595b 100644
@@ -2422,8 +2422,6 @@ static void spapr_machine_2_4_class_init(ObjectClass *oc, void *data)
     MachineClass *mc = MACHINE_CLASS(oc);
 
     mc->desc = "pSeries Logical Partition (PAPR compliant) v2.4";
-    mc->alias = "pseries";
-    mc->is_default = 0;
     mc->compat_props = compat_props;
 }
 
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 8 lines · Thomas Huth

The "pseries" alias is currently set twice, one time for the pseries-2.4 machine and one time for the "pseries-2.5" machine. To avoid confusion with the alias, let's remove the one from the older machine class. And while we're at it, also remove the "is_default = 0" there since the is_default variable should be set to zero by default already.

Applied to ppc-for-2.5, thanks.

I'll try to send a pull request for the couple of outstanding patches against 2.5 today.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson