lkml.org 
[lkml]   [2014]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectspatch for trivial pointer comparison style?
From
Date
I added a checkpatch entry for this.
Maybe some cocci test like this would be useful?

@@
type t;
t *p;
@@
- p == NULL
+ !p

@@
type t;
t *p;
@@
- p != NULL
+ p

@@
type t;
t *p;
@@
- NULL == p
+ !p

@@
type t;
t *p;
@@
- NULL != p
+ p




\
 
 \ /
  Last update: 2014-11-13 21:21    [W:0.156 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site