forked from luck/tmp_suning_uos_patched
99fcec30e8
This script detects cases of use of cast for the value returned by kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc, kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes the cast as it is not useful. This Coccinelle script replaces drop_kmalloc_cast.cocci as it removes the casting in more limited cases of kmalloc, kzalloc and kcalloc. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Michal Marek <mmarek@suse.cz> |
||
---|---|---|
.. | ||
alloc | ||
d_find_alias.cocci | ||
devm_ioremap_resource.cocci | ||
err_cast.cocci | ||
kstrdup.cocci | ||
memdup_user.cocci | ||
memdup.cocci | ||
pm_runtime.cocci | ||
ptr_ret.cocci | ||
resource_size.cocci | ||
simple_open.cocci |