Subject: Re: [PATCH] ppp: don't use 0 in pointer context

From: Roland Dreier <[email-masked]>
Date: Wed, 08 Feb 2006 14:23:56 -0800

James> And the solution is to treat it as a boolean instead?!  I'm
    James> not sure which is more ugly.

    James> Why wouldn't explicit comparison against NULL be the
    James> preferred fix?

"if (ptr)" and "if (!ptr)" are the preferred idiom for testing whether
a pointer is NULL.  What is gained by writing "if (ptr != NULL)" ?