drivers: net: Remove casts to same type
authorJoe Perches <joe@perches.com>
Mon, 4 Jun 2012 12:44:18 +0000 (12:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jun 2012 16:31:33 +0000 (09:31 -0700)
commitc2fd03a0115a244c5f622453b2b1f038ed5700a6
tree55c6a15e0ab898f15b08dfe4dcba4db55dc2af9b
parent2c208890c6d4e16076c6664137703ec813e8fa6c
drivers: net: Remove casts to same type

Adding casts of objects to the same type is unnecessary
and confusing for a human reader.

For example, this cast:

        int y;
        int *p = (int *)&y;

I used the coccinelle script below to find and remove these
unnecessary casts.  I manually removed the conversions this
script produces of casts with __force, __iomem and __user.

@@
type T;
T *p;
@@

-       (T *)p
+       p

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
drivers/net/appletalk/cops.c
drivers/net/can/bfin_can.c
drivers/net/can/mcp251x.c
drivers/net/fddi/defxx.c
drivers/net/fddi/skfp/pmf.c
drivers/net/hamradio/mkiss.c
drivers/net/hyperv/netvsc.c
drivers/net/irda/ali-ircc.c
drivers/net/irda/au1k_ir.c
drivers/net/slip/slip.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/wan/x25_asy.c
drivers/net/wimax/i2400m/fw.c