]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drivers/net: Remove casts of void *
authorJoe Perches <joe@perches.com>
Thu, 16 Jun 2011 19:08:06 +0000 (19:08 +0000)
committerBob Picco <bob.picco@oracle.com>
Fri, 3 Feb 2012 18:18:31 +0000 (13:18 -0500)
commit265730e1f73391bc7fa8c929043473bfff013bd9
tree9a4922846ac95966cba7c1dc5523ddc9ea343234
parenta633cd73e7b3f8bc785fb240df98ac1546f7515d
drivers/net: Remove casts of void *

Unnecessary casts of void * clutter the code.
(
43d620c82985b19008d87a437b4cf83f356264f7
we only include the part which impacts broadcom drivers/net/cnic.c
)

These are the remainder casts after several specific
patches to remove netdev_priv and dev_priv.

Done via coccinelle script (and a little editing):

$ cat cast_void_pointer.cocci
@@
type T;
T *pt;
void *pv;
@@

- pt = (T *)pv;
+ pt = pv;

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Acked-By: Chris Snook <chris.snook@gmail.com>
Acked-by: Jon Mason <jdmason@kudzu.us>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c