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(a)us.ibm.com