[openib-general] Re: Re: [PATCH][SDP][14/22] Whitespace cleanup in sdp_proto.h

Tom Duffy tduffy at sun.com
Tue Feb 22 13:22:03 PST 2005


On Tue, 2005-02-22 at 22:32 +0200, Michael S. Tsirkin wrote:
> Good. By the way, do you plan to keep the convention of writing
> 0 == foo?
> 
> I personally dislike it (and Linux expressed the same santiment at some
> point), this practice unnecessary with gcc
> which warns if you write if (foo = 0) accidentally, and
> kernel code itself never does it, but some in-kernel drivers 
> do it ... its easy to fix more or less automatically.

I don't mind that one, but I don't really care.

How about the SDP_CHECK_NULL macro?  It is used in most (but not all)
places in the SDP code.  Does turning this checking off in non-debug
builds really speed things up a lot?

-tduffy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050222/b3aeebfe/attachment.sig>


More information about the general mailing list