summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorHimanshu Jha <himanshujha199640@gmail.com>2017-12-27 03:10:10 +0530
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-16 23:38:09 +0900
commit5e2d9da5b9ba350a4f13bd3b255be046bcf86465 (patch)
treeef58b5e10150fdec43c47dff56497afe7df56637 /sound
parent262dad68e152fda06e5c5666b3186c23dfd6ae2f (diff)
downloadop-kernel-dev-5e2d9da5b9ba350a4f13bd3b255be046bcf86465.zip
op-kernel-dev-5e2d9da5b9ba350a4f13bd3b255be046bcf86465.tar.gz
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>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud