qemu-e2k/scripts/coccinelle/typecast.cocci
Laurent Vivier ac4e29f100 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>
2016-09-15 15:32:22 +03:00

8 lines
58 B
Plaintext

// Remove useless casts
@@
type T;
T v;
@@
- (T *)&v
+ &v