HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6153aa71cb6e3e613522a545d33e96be594376dc
[bpt/coccinelle.git]
/
tests
/
km.cocci
1
@@
2
type T, T2;
3
expression x;
4
expression E1,E2;
5
@@
6
7
- x = (T)kmalloc(E1,E2)
8
+ x = kzalloc(E1,E2)
9
...
10
(
11
- memset((T2)x,0,E1);
12
|
13
- memset((T2)x,0,sizeof(*x));
14
)