- 16 1月, 2018 2 次提交
-
-
由 Himanshu Jha 提交于
Rename kzalloc-simple to zalloc-simple since now the rule is not specific to kzalloc function only, but also to many other zero memory allocating functions specified in the rule. Suggested-by: NSF Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: NHimanshu Jha <himanshujha199640@gmail.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
-
由 Himanshu Jha 提交于
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: NHimanshu Jha <himanshujha199640@gmail.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
-
- 04 7月, 2013 1 次提交
-
-
由 Nicolas Palix 提交于
spatch has changed its option scheme. E.g., --no_show_diff is now --no-show-diff This patch updates: - scripts/coccicheck - Semantic patches under scripts/coccinelle/ Signed-off-by: NNicolas Palix <nicolas.palix@imag.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 31 8月, 2010 1 次提交
-
-
由 Nicolas Palix 提交于
alloc contains various semantic patches related to the allocation APIs Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 12 6月, 2010 1 次提交
-
-
由 Nicolas Palix 提交于
This semantic patch replaces a pair of calls to kmalloc and memset by a single call to kzalloc. It only looks for simple cases to avoid false positives. Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-