From: Laurent Vivier <lviv...@redhat.com> Script from LKML.
Signed-off-by: Laurent Vivier <lviv...@redhat.com> Signed-off-by: Michael Tokarev <m...@tls.msk.ru> --- scripts/coccinelle/typecast.cocci | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scripts/coccinelle/typecast.cocci diff --git a/scripts/coccinelle/typecast.cocci b/scripts/coccinelle/typecast.cocci new file mode 100644 index 0000000..be2183e --- /dev/null +++ b/scripts/coccinelle/typecast.cocci @@ -0,0 +1,7 @@ +// Remove useless casts +@@ +type T; +T v; +@@ +- (T *)&v ++ &v -- 2.1.4