[ofa-general] Re: [PATCHv2 1/2] opensm: Add common ib_gid_is_notzero routine

Sasha Khapyorsky sashak at voltaire.com
Tue Mar 17 12:54:59 PDT 2009


On 21:08 Tue 17 Mar     , Sasha Khapyorsky wrote:
> > +{
> > +	if (memcmp(p_gid, &ib_zero_gid, sizeof(*p_gid)))
> > +		return TRUE;
> > +	return FALSE;
> 
> Did this as 'return !memcmp(....)' to simplify the flow.

Assuming 'return memcmp()' of course :)

Sasha



More information about the general mailing list