From: Julia Lawall <julia.lawall@lip6.fr>
To: SF Markus Elfring <elfring@users.sourceforge.net>
Cc: Joe Perches <joe@perches.com>, Coccinelle <cocci@systeme.lip6.fr>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Cocci] spatch for trivial pointer comparison style?
Date: Fri, 14 Nov 2014 11:31:30 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.10.1411141130470.2443@hadrien> (raw)
In-Reply-To: <5465D4B2.4020000@users.sourceforge.net>
On Fri, 14 Nov 2014, SF Markus Elfring wrote:
> > I don't think that the change is desirable in all cases. There are
> > functions like kmalloc where NULL means failure and !p seems like the
> > reasonable choice. But there maybe other cases where NULL is somehow
> > a meaningful value.
>
> How do you think about to adjust checks for null pointers not only
> in Linux source files but also in other applications?
> Are there any more software design challenges to consider with the
> definition of the preprocessor symbol "NULL"?
Other applications may have other preferences.
julia
prev parent reply other threads:[~2014-11-14 10:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 19:55 Joe Perches
2014-11-14 6:06 ` [Cocci] " Julia Lawall
2014-11-14 6:12 ` Joe Perches
2014-11-14 9:18 ` Julia Lawall
2014-11-14 16:22 ` Joe Perches
2014-11-15 6:11 ` Julia Lawall
2014-11-14 10:08 ` SF Markus Elfring
2014-11-14 10:31 ` Julia Lawall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.10.1411141130470.2443@hadrien \
--to=julia.lawall@lip6.fr \
--cc=cocci@systeme.lip6.fr \
--cc=elfring@users.sourceforge.net \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®