qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [PATCH] spar: remove extra type variable


From: Cédric Le Goater
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH] spar: remove extra type variable
Date: Tue, 9 Aug 2016 13:07:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 08/09/2016 01:05 PM, Thomas Huth wrote:
> On 09.08.2016 10:25, Cédric Le Goater wrote:
>> The sPAPR CPU core typename is already available in the upper
>> block.
>>
>> Signed-off-by: Cédric Le Goater <address@hidden>
>> ---
>>  hw/ppc/spapr.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> 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);
>>  
>>              if (i < spapr_cores) {
>> -                char *type = spapr_get_cpu_core_type(machine->cpu_model);
>>                  Object *core;
>>  
>>                  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.

yes. I will rework that. 

Thanks,

C.
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]