spapr_cpu_core: cleaning up qdev_get_machine() calls
authorGreg Kurz <groug@kaod.org>
Tue, 12 Sep 2017 06:51:21 +0000 (08:51 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 15 Sep 2017 00:29:48 +0000 (10:29 +1000)
commit3b2fcedd52986db92fd17127c73d9c09d4ae2da1
treec86df6f8cf461620b3d2ac7dd1f3531f7c674b32
parent96dbc9af35eb6672a3b531da8bba521ce46c26dc
spapr_cpu_core: cleaning up qdev_get_machine() calls

This patch removes the qdev_get_machine() calls that are made
in spapr_cpu_core.c in situations where we can get an existing
pointer for the MachineState by either passing it as an argument
to the function or by using other already available pointers.

Credits to Daniel Henrique Barboza for the idea and the changelog
text.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c