Debian Codegraph @

demos/janitorings/kzalloc-fix.cocci

raw
1 // iso X * Y will handle the variations
2
3 @@
4 expression E;
5 constant c;
6 type T;
7 @@
8
9 - kzalloc(sizeof(T) * c, E)
10 + kcalloc(c, sizeof(T), E)