Browse Source

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>
pull/44/head
Laurent Vivier 10 years ago
committed by Michael Tokarev
parent
commit
ac4e29f100
  1. 7
      scripts/coccinelle/typecast.cocci

7
scripts/coccinelle/typecast.cocci

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