From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX4qW-0001sO-Un for qemu-devel@nongnu.org; Tue, 09 Aug 2016 07:05:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX4qR-0008Hl-Tw for qemu-devel@nongnu.org; Tue, 09 Aug 2016 07:05:19 -0400 References: <1470731119-14661-1-git-send-email-clg@kaod.org> From: Thomas Huth Message-ID: Date: Tue, 9 Aug 2016 13:05:11 +0200 MIME-Version: 1.0 In-Reply-To: <1470731119-14661-1-git-send-email-clg@kaod.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] spar: remove extra type variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , qemu-ppc@nongnu.org Cc: Bharata B Rao , qemu-devel@nongnu.org, David Gibson On 09.08.2016 10:25, C=C3=A9dric Le Goater wrote: > The sPAPR CPU core typename is already available in the upper > block. >=20 > Signed-off-by: C=C3=A9dric Le Goater > --- > hw/ppc/spapr.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index fdc6644d61cb..6dc5fe48971e 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -1783,7 +1783,6 @@ static void ppc_spapr_init(MachineState *machine) > qemu_register_reset(spapr_drc_reset, drc); > =20 > if (i < spapr_cores) { > - char *type =3D spapr_get_cpu_core_type(machine->cpu_mo= del); > Object *core; > =20 > if (!object_class_by_name(type)) { Good point. But I think the "if (!object_class_by_name(type))" check could then also be moved to the outer block instead. Thomas