summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle/struct_thread_null.cocci
blob: 4867b4454b2da12afea2e9ab30e76993dfdaeb1e (plain)
1
2
3
4
5
6
7
8
9
@@
identifier I;
identifier func =~ "thread_add_";
struct thread *thread;
@@

*thread = NULL;
...
func