Re: [PATCH v2 1/4] domain config: reduce nesting

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

 



Please, disregard this. It's version of the other 1/4 patch which differs only in
commit message.

On 24.02.2016 11:38, Nikolay Shirokovskiy wrote:
> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
> ---
>  src/conf/domain_conf.c | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 0d2957b..d6c33f6 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -2872,13 +2872,11 @@ virDomainObjUpdateModificationImpact(virDomainObjPtr vm,
>          return -1;
>      }
>  
> -    if (*flags & VIR_DOMAIN_AFFECT_CONFIG) {
> -        if (!vm->persistent) {
> -            virReportError(VIR_ERR_OPERATION_INVALID, "%s",
> -                           _("transient domains do not have any "
> -                             "persistent config"));
> -            return -1;
> -        }
> +    if (!vm->persistent && (*flags & VIR_DOMAIN_AFFECT_CONFIG)) {
> +        virReportError(VIR_ERR_OPERATION_INVALID, "%s",
> +                       _("transient domains do not have any "
> +                         "persistent config"));
> +        return -1;
>      }
>  
>      return 0;
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]