chelsio: Remove addressof casts to same type
authorJoe Perches <joe@perches.com>
Mon, 24 Mar 2014 17:45:12 +0000 (10:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 19:46:15 +0000 (15:46 -0400)
commit12f2a47945946731bd2f4a64e4720daaabc95106
treed3bec47bd612f90a95cb6eecac931bd0dd00fc9b
parentf845b335f151a0b4f44827b519150e9e2982bd0d
chelsio: Remove addressof casts to same type

Using addressof then casting to the original type is pointless,
so remove these unnecessary casts.

Done via coccinelle script:

$ cat typecast.cocci
@@
type T;
T foo;
@@

- (T *)&foo
+ &foo

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c