
HE> std_assoc_get_handler(const struct std_assoc_ctx *ctx, HE> + struct std_assoc_info *info, HE> const CMPIObjectPath *ref) HE> { HE> struct std_assoc *ptr = NULL; HE> int i; HE> + bool rc; HE> + HE> + CU_DEBUG("Calling Provider: '%s'", HE> + info->provider_name); HE> for (i = 0; ctx->handlers[i]; i++) { HE> ptr = ctx->handlers[i]; HE> if (match_source_class(ctx->brkr, ref, ptr)) HE> - return ptr; HE> - } HE> - HE> + break; HE> + } HE> + HE> + if (ptr) { This starts a large block of indented code that doesn't need to be. Can we replace this with: if (ptr == NULL) goto out; so that the rest of the body can just continue? Otherwise, this seems fine, but I think it would be a good idea to get a sign-off from Kaitlin as she is familiar with this stuff too. -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com