coccinelle: add a script to remove useless casts

Script from LKML.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Laurent Vivier 2016-06-15 18:14:31 +02:00 committed by Michael Tokarev
parent a41c457881
commit ac4e29f100
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// Remove useless casts
@@
type T;
T v;
@@
- (T *)&v
+ &v