From: julia.lawall@lip6.fr (Julia Lawall) Date: Fri, 14 Nov 2014 11:31:30 +0100 (CET) Subject: [Cocci] spatch for trivial pointer comparison style? In-Reply-To: <5465D4B2.4020000@users.sourceforge.net> References: <1415908529.4223.11.camel@perches.com> <5465D4B2.4020000@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr 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