Re: [PATCH] 2.4.22pre10: {,un}likely_p() macros for pointers

From: David S. Miller
Date: Sat Aug 09 2003 - 04:03:28 EST


On Sat, 9 Aug 2003 10:13:46 +0200
Willy Tarreau <willy@xxxxxxxxx> wrote:

> (how could !!x be 0 if x isn't ?)

I believe the C language allows for systems where the NULL pointer is
not zero.

I can't think of any reason why the NULL macro exists otherwise.

However, even if I'm right, I dread the guy who has to make other
people's code work on such a platform. Using normal boolean tests for
NULL pointer checks is just too common.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/