[Top] [All Lists]

Re: [PATCH] Use NULL for pointer

Subject: Re: [PATCH] Use NULL for pointer
From: Atsushi Nemoto <>
Date: Fri, 13 Jul 2007 22:07:11 +0900 (JST)
In-reply-to: <Pine.LNX.4.21.0707130135090.1523-100000@Opal.Peter>
Original-recipient: rfc822;
References: <> <Pine.LNX.4.21.0707130135090.1523-100000@Opal.Peter>
On Fri, 13 Jul 2007 01:50:07 +0200 (CEST), wrote:
> Please excuse me, i couldn't restrain myself from commenting on this.
> It's a pity, that a weird warning (which gcc version with what settings
> did produce it ?) urges one to (re-)introduce this obsolescent macro.

The warning is produced by sparse, not gcc.

I know C++ dislike NULL, but it seems kernel developpers like NULL for
a null pointer.  There is another way to convert a pointer to a bool:

                action = board_be_handler(regs, !!fixup);

It might satisfy both people, but might surprise other people a bit :)

Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>