qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 14/14] qmp: Don't use error_is_set() to suppr


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v3 14/14] qmp: Don't use error_is_set() to suppress additional errors
Date: Fri, 02 May 2014 06:34:21 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 05/02/2014 05:26 AM, Markus Armbruster wrote:
> Using error_is_set(errp) that way can sweep programming errors under
> the carpet when we get called incorrectly with an error set.
> 
> encrypted_bdrv_it() does it, because there's no way to make
> bdrv_iterate() break its loop.  Actually safe, because qmp_cont()
> clears the error before the loop.  Clean it up anyway: replace
> bdrv_iterate() by bdrv_next(), break the loop on error.
> 
> Replace both occurences, for consistency.

s/occurences/occurrences/

> 
> Signed-off-by: Markus Armbruster <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>

Fixing up the commit message typo is trivial and doesn't alter the
positive review.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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