summaryrefslogtreecommitdiffstats
path: root/scripts/dtc
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-06-14 21:15:41 +0530
committerMichal Marek <mmarek@suse.cz>2014-08-06 12:10:17 +0200
commit99fcec30e882ec214b689889b3599cf98f5c9843 (patch)
treec267bff61b2ea6dccde7685f52d8fed4f4cd1074 /scripts/dtc
parentb5889ab7d4e6ff194ff1ef8ad2eb9266a23e376b (diff)
downloadlinux-stable-99fcec30e882ec214b689889b3599cf98f5c9843.tar.gz
linux-stable-99fcec30e882ec214b689889b3599cf98f5c9843.tar.bz2
linux-stable-99fcec30e882ec214b689889b3599cf98f5c9843.zip
Coccinelle: Script to detect cast after memory allocation
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>
Diffstat (limited to 'scripts/dtc')
0 files changed, 0 insertions, 0 deletions