[PATCH 12/68] 0 -> NULL, for arch/powerpc

Paul Mackerras paulus at samba.org
Sat Jul 28 09:48:58 EST 2007


Yoann Padioleau writes:

> When comparing a pointer, it's clearer to compare it to NULL than to 0.

As other people have said, if you're going to spend time on this,
testing (!buf) is more idiomatic in the kernel than (buf == NULL).

Paul.



More information about the Linuxppc-dev mailing list