mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
committed by
Michael Tokarev
parent
a41c457881
commit
ac4e29f100
@@ -0,0 +1,7 @@
|
||||
// Remove useless casts
|
||||
@@
|
||||
type T;
|
||||
T v;
|
||||
@@
|
||||
- (T *)&v
|
||||
+ &v
|
||||
Reference in New Issue
Block a user