> -    if (hdr.command < 0                             ||
 > -        hdr.command >= ARRAY_SIZE(uverbs_cmd_table) ||
 > +    if (hdr.command >= ARRAY_SIZE(uverbs_cmd_table) ||

I prefer to leave the code in as being more self-documenting and
resilient against future changes.  The compiler should be able to
optimize away the always-true part anyway.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

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

Reply via email to