Commit ac4e29f1 authored by Laurent Vivier's avatar Laurent Vivier Committed by Michael Tokarev
Browse files

coccinelle: add a script to remove useless casts



Script from LKML.

Signed-off-by: default avatarLaurent Vivier <lvivier@redhat.com>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent a41c4578
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
// Remove useless casts
@@
type T;
T v;
@@
-	(T *)&v
+	&v