spapr: move lookup of the node into spapr_memory_plug()
commit81985f3be9679b8770f46f78d475ff53a2e8cdbb
authorDavid Hildenbrand <david@redhat.com>
Fri, 8 Jun 2018 12:48:12 +0000 (8 14:48 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Jun 2018 00:44:36 +0000 (12 10:44 +1000)
treec40f1a275d7afa7de2d54ba96ad85cfbb145d221
parentfcc8ef17e264ef6f4afb6fa4af71b88993f49363
spapr: move lookup of the node into spapr_memory_plug()

Let's clean the hotplug handler up by moving lookup of the node into
the function where it is actually being used.

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