aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/expr.c
diff options
context:
space:
mode:
authorHimanshu Jha <[email protected]>2017-12-26 21:40:10 +0000
committerMasahiro Yamada <[email protected]>2018-01-16 14:38:09 +0000
commit5e2d9da5b9ba350a4f13bd3b255be046bcf86465 (patch)
treeef58b5e10150fdec43c47dff56497afe7df56637 /scripts/kconfig/expr.c
parentkbuild: pkg: make out-of-tree rpm/deb-pkg build immediately fail (diff)
downloadkernel-5e2d9da5b9ba350a4f13bd3b255be046bcf86465.tar.gz
kernel-5e2d9da5b9ba350a4f13bd3b255be046bcf86465.zip
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 <[email protected]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/kconfig/expr.c')
0 files changed, 0 insertions, 0 deletions