spapr: remove extra type variable
commitcaebf37859b991c27ada22d5d7bfd929844bd20f
authorCédric Le Goater <clg@kaod.org>
Tue, 9 Aug 2016 16:59:57 +0000 (9 18:59 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 Aug 2016 03:12:20 +0000 (10 13:12 +1000)
tree2b9f3f3ec6276480b428c784bf0933377dc4c322
parent760d88d1d0c409f1afe6f1c91539487413e8b2a9
spapr: remove extra type variable

The sPAPR CPU core typename is already available in the upper
block. Let's use it and move the check upward also.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c