[Libvirt-cim] [PATCH 3 of 3] Added association HostedAccessPoint (HostSystem <-> KVMRedirectionSAP)

Dan Smith danms at us.ibm.com
Thu Dec 4 21:47:09 UTC 2008


RM> +static CMPIStatus host_to_rsap(const CMPIObjectPath *ref,
RM> +                               struct std_assoc_info *info,
RM> +                               struct inst_list *list)
RM> +{
RM> +        CMPIStatus s = {CMPI_RC_OK, NULL};
RM> +        CMPIInstance *instance = NULL;
RM> +        CMPIObjectPath *vref = NULL;
RM> +
RM> +        if (!STARTS_WITH(CLASSNAME(ref), "Linux_") &&
RM> +            !match_hypervisor_prefix(ref, info))
RM> +                goto out;
RM> +
RM> +        s = get_host(_BROKER, info->context, ref, &instance, true);
RM> +        if (s.rc != CMPI_RC_OK)
RM> +                goto out; 
RM> +
RM> +        vref = convert_sblim_hostsystem(_BROKER, ref, info);
RM> +        if (vref == NULL)
RM> +                goto out;
RM> +
RM> +        s = enum_console_sap(_BROKER, vref, list);
RM> +
RM> +        if (s.rc != CMPI_RC_OK)
RM> +                goto out;

These two lines are dead code.  Please remove them.

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com




More information about the Libvirt-cim mailing list