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

From: Herbert Xu
Date: Sat Aug 09 2003 - 05:22:19 EST


David S. Miller <davem@xxxxxxxxxx> wrote:
>
> I believe the C language allows for systems where the NULL pointer is
> not zero.

It does. However it also says that whenever a pointer is compared
with the integer constant 0 it must be equal if and only if it is
a NULL pointer.

An integer constant expression with the value 0, or such an expression
cast to type void *, is called a null pointer constant.
--
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
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/