RE: [PATCH net-next 2/2] drivers/net: Remove casts of void *

From
Amit Salecha <hidden>
Date
2011-06-14 11:32:04
Also in
lkml
Reply to
Joe Perches, 2011-06-14
From: Joe Perches [mailto:joe@perches.com]

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:

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

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

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/netxen/netxen_nic_ctx.c |   16 ++++++------
 drivers/net/qlcnic/qlcnic_ctx.c     |   26 ++++++++++----------
 drivers/net/qlcnic/qlcnic_ethtool.c |    2 +-
 drivers/net/qlcnic/qlcnic_hw.c      |    3 +-
 drivers/net/qlcnic/qlcnic_main.c    |    2 +-
netxen_nic and qlcnic looks good.

-Amit
Thread (24 messages) 24 messages, 13 authors, last reply 2011-06-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help