]> git.baikalelectronics.ru Git - kernel.git/commit
carl9170: Remove casts of pointer to same type
authorJoe Perches <joe@perches.com>
Mon, 24 Mar 2014 20:15:38 +0000 (13:15 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2014 18:20:05 +0000 (14:20 -0400)
commite8e4c9e3c0ae7d81f3b27ed50063a14e3a997503
tree1cfe527d2d96150869bb1bc82eedab11e8453183
parent15b193bc6d8c2e7946ddb26bba96f6349affa5e6
carl9170: Remove casts of pointer to same type

Casting a pointer to a pointer of the same type is pointless,
so remove these unnecessary casts.

Done via coccinelle script:

$ cat typecast_2.cocci
@@
type T;
T *foo;
@@

- (T *)foo
+ foo

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/rx.c