]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/net: Remove casts of void *
authorJoe Perches <joe@perches.com>
Thu, 16 Jun 2011 19:08:06 +0000 (19:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2011 22:48:29 +0000 (15:48 -0700)
commit43d620c82985b19008d87a437b4cf83f356264f7
tree8ea6d9d1ab5d36e7bc130b5189997e12edb01fb6
parentdadbe85ac47f180fa1e3ef93b276ab7938b1a98b
drivers/net: Remove casts of void *

Unnecessary casts of void * clutter the code.

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>
41 files changed:
drivers/net/a2065.c
drivers/net/appletalk/ltpc.c
drivers/net/atl1e/atl1e_main.c
drivers/net/atlx/atl2.c
drivers/net/benet/be_cmds.c
drivers/net/benet/be_ethtool.c
drivers/net/bna/bfa_cee.c
drivers/net/bna/cna.h
drivers/net/caif/caif_shmcore.c
drivers/net/cnic.c
drivers/net/cxgb3/cxgb3_offload.c
drivers/net/davinci_cpdma.c
drivers/net/declance.c
drivers/net/depca.c
drivers/net/dl2k.c
drivers/net/ehea/ehea_qmr.c
drivers/net/epic100.c
drivers/net/fealnx.c
drivers/net/gianfar.c
drivers/net/hamachi.c
drivers/net/macmace.c
drivers/net/mlx4/en_rx.c
drivers/net/mlx4/en_tx.c
drivers/net/netxen/netxen_nic_ctx.c
drivers/net/pxa168_eth.c
drivers/net/qla3xxx.c
drivers/net/qlcnic/qlcnic_ctx.c
drivers/net/qlcnic/qlcnic_ethtool.c
drivers/net/qlcnic/qlcnic_hw.c
drivers/net/qlcnic/qlcnic_main.c
drivers/net/qlge/qlge_main.c
drivers/net/s2io.c
drivers/net/sfc/siena.c
drivers/net/sis900.c
drivers/net/tokenring/madgemc.c
drivers/net/typhoon.c
drivers/net/vxge/vxge-config.c
drivers/net/vxge/vxge-traffic.c
drivers/net/wan/pc300_tty.c
drivers/net/xilinx_emaclite.c
drivers/net/yellowfin.c