Hi Hal,

I think the check for num lids is so similar it deserves an inline
function.
What do you say?

I refer to:

> +        if (p_sw && (p_si = osm_switch_get_si_ptr(p_sw)) &&
> +            ib_switch_info_is_enhanced_port0(p_si))
> +        {
> +          num_lids = lmc_num_lids;
> +        }
> +        else
> +        {
> +          num_lids = 1;
> +        }
> +      }
> 
 


_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to