]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita27f335b498021c5dcb9ce28c9d63d3907a08b71
treed3bec47bd612f90a95cb6eecac931bd0dd00fc9b
parent6df07a059da8e0481a1b53458f07fcf2510df01e
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