android_kernel_motorola_sm6375/scripts/coccinelle
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Himanshu Jha 5e2d9da5b9 Coccinelle: kzalloc-simple: Add all zero allocating functions
There are many instances where memory is allocated using regular
allocator functions immediately followed by setting the allocated
memory to 0 value using memset.

We already have zero memory allocator functions to set the memory to
0 value instead of manually setting it using memset.

Therefore, use zero memory allocating functions instead of regular
memory allocators followed by memset 0 to remove redundant memset and
make the code more cleaner and also reduce the code size.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-01-16 23:38:09 +09:00
..
api Coccinelle: kzalloc-simple: Add all zero allocating functions 2018-01-16 23:38:09 +09:00
free
iterators coccinelle: use exists to improve efficiency 2017-11-14 23:21:16 +09:00
locks
misc Kbuild misc updates for v4.15 2017-11-17 17:51:33 -08:00
null coccinelle: grep Options and Requires fields more precisely 2017-11-14 23:19:04 +09:00
tests