[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/6] target-i386: cpu: consolidate calls of o
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/6] target-i386: cpu: consolidate calls of object_property_parse() in x86_cpu_parse_featurestr |
Date: |
Thu, 9 Jun 2016 13:39:34 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 06/09/2016 11:29 AM, Eduardo Habkost wrote:
> On Thu, Jun 09, 2016 at 07:10:58PM +0200, Igor Mammedov wrote:
> [...]
>> +
>> + if (local_err) {
>> + error_propagate(errp, local_err);
>> }
>
> error_propagate() already ignores local_err==NULL so you don't
> need to check it first.
In fact, if the ONLY reason you are doing an 'if (local_err)'
conditional is to decide if an error was set, then you don't care about
the error locally, and could have passed errp instead of &local_err in
the first place.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v2 0/6] cpus: make "-cpu cpux, features" global properties, Igor Mammedov, 2016/06/09
- [Qemu-devel] [PATCH v2 5/6] arm: virt: parse cpu_model only once, Igor Mammedov, 2016/06/09
- [Qemu-devel] [PATCH v2 2/6] target-i386: print obsolete warnings if +-features are used, Igor Mammedov, 2016/06/09
- [Qemu-devel] [PATCH v2 6/6] pc: parse cpu features only once, Igor Mammedov, 2016/06/09
- [Qemu-devel] [PATCH v2 4/6] cpu: use CPUClass->parse_features() as convertor to global properties, Igor Mammedov, 2016/06/09