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


_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to