Messages in this thread | | | Date | Wed, 24 Apr 2002 20:56:22 +0200 | From | Ingo Oeser <> | Subject | Re: [patch] 2.5.9 remove warnings |
| |
On Tue, Apr 23, 2002 at 11:08:08PM +0200, Kasper Dupont wrote: > Wouldn't "!!(x)" make more sense here than "(x) != 0"? > (I don't like comparing pointers with integers.)
No, == 0 means, that the pointer is invalid, so != 0 means, the pointer is valid. You can find this in the C99-Standard at least.
So, this is perfectly normal ;-)
Regards
Ingo Oeser -- Science is what we can tell a computer. Art is everything else. --- D.E.Knuth - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |