spapr_pci: factorize the use of SPAPR_MACHINE_GET_CLASS()
commit2c88b098e76fde0c7fcc0476dd3f80ce58409505
authorCédric Le Goater <clg@kaod.org>
Fri, 10 Aug 2018 08:00:26 +0000 (10 10:00 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 21 Aug 2018 04:28:45 +0000 (21 14:28 +1000)
treeb8493993d969a8e64512b0d3f31b5d69ed54ba19
parent74887ed918a666695d11e717e6f1721139cee1ea
spapr_pci: factorize the use of SPAPR_MACHINE_GET_CLASS()

It should save us some CPU cycles as these routines perform a lot of
checks.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_pci.c