[Libvirt-cim] [PATCH] Remove duplicate code in _netpool_member_of()

Richard Maciel rmaciel at linux.vnet.ibm.com
Tue Dec 8 14:21:36 UTC 2009


+1

On 12/04/2009 09:17 PM, Kaitlin Rupert wrote:
> # HG changeset patch
> # User Kaitlin Rupert<karupert at us.ibm.com>
> # Date 1259893229 28800
> # Node ID 67abfd38dce38599a70213327df509bd1f967d03
> # Parent  57490fca41e5b1f2ecc893bf22771a6c718df161
> Remove duplicate code in _netpool_member_of()
>
> diff -r 57490fca41e5 -r 67abfd38dce3 src/Virt_DevicePool.c
> --- a/src/Virt_DevicePool.c	Thu Dec 03 18:20:28 2009 -0800
> +++ b/src/Virt_DevicePool.c	Thu Dec 03 18:20:29 2009 -0800
> @@ -490,12 +490,6 @@
>                   goto out;
>           }
>
> -        if (ndev->source == NULL) {
> -                CU_DEBUG("Unable to determine pool since no network "
> -                         "source defined");
> -                goto out;
> -        }
> -
>           if (STREQ(ndev->type, "bridge"))
>                   net = bridge_to_network(conn, ndev->source);
>           else if (STREQ(ndev->type, "network"))


-- 
Richard Maciel, MSc
IBM Linux Technology Center
rmaciel at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list