summaryrefslogtreecommitdiffstats
path: root/coccinelle/equals-null.cocci
blob: 957d828a8376abc6ad0af8cfd9842995e819cb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@@
expression e;
statement s;
@@
- if (e == NULL)
+ if (!e)
s
@@
expression e;
statement s;
@@
- if (e != NULL)
+ if (e)
s