5e2d9da5b9
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> |
||
---|---|---|
.. | ||
alloc | ||
debugfs | ||
check_bq27xxx_data.cocci | ||
d_find_alias.cocci | ||
drm-get-put.cocci | ||
err_cast.cocci | ||
kstrdup.cocci | ||
memdup_user.cocci | ||
memdup.cocci | ||
platform_no_drv_owner.cocci | ||
pm_runtime.cocci | ||
ptr_ret.cocci | ||
resource_size.cocci | ||
simple_open.cocci | ||
vma_pages.cocci |