Re: [PATCH 05/12] qemu: domain: split out post parse default device handling

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

 



On Thu, Jan 07, 2016 at 22:49:59 -0500, Cole Robinson wrote:
> Should be a no-op
> ---
>  src/qemu/qemu_domain.c | 53 +++++++++++++++++++++++++++++++-------------------
>  1 file changed, 33 insertions(+), 20 deletions(-)
> 
> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
> index bb8d47f..26a29b1 100644
> --- a/src/qemu/qemu_domain.c
> +++ b/src/qemu/qemu_domain.c
> @@ -1025,14 +1025,10 @@ virDomainXMLNamespace virQEMUDriverDomainXMLNamespace = {
>      .href = qemuDomainDefNamespaceHref,
>  };
>  
> -

This creates wrong spacing ...

>  static int
> -qemuDomainDefPostParse(virDomainDefPtr def,
> -                       virCapsPtr caps,
> -                       void *opaque)
> +qemuDomainDefAddDefaultDevices(virDomainDefPtr def,
> +                               virQEMUCapsPtr qemuCaps)
>  {
> -    virQEMUDriverPtr driver = opaque;
> -    virQEMUCapsPtr qemuCaps = NULL;
>      bool addDefaultUSB = true;
>      bool addImplicitSATA = false;
>      bool addPCIRoot = false;

[...]

> @@ -1212,6 +1194,37 @@ qemuDomainDefPostParse(virDomainDefPtr def,
>  
>      ret = 0;
>   cleanup:
> +    return ret;
> +}
> +
> +

While here you add correct one ...

> +static int
> +qemuDomainDefPostParse(virDomainDefPtr def,
> +                       virCapsPtr caps,

[...]

ACK

Attachment: signature.asc
Description: Digital signature

--
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]