[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <99737F4847ED0A48AECC9F4A1974A4B80FDEEEA283@MNEXMB2.qlogic.org>
Date: Tue, 14 Jun 2011 06:31:47 -0500
From: Amit Salecha <amit.salecha@...gic.com>
To: Joe Perches <joe@...ches.com>, netdev <netdev@...r.kernel.org>
CC: Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
Jay Cliburn <jcliburn@...il.com>,
Chris Snook <chris.snook@...il.com>,
Jie Yang <jie.yang@...eros.com>,
Sathya Perla <sathya.perla@...lex.com>,
Subbu Seetharaman <subbu.seetharaman@...lex.com>,
Ajit Khaparde <ajit.khaparde@...lex.com>,
Rasesh Mody <rmody@...cade.com>,
Debashis Dutt <ddutt@...cade.com>,
Sjur Braendeland <sjur.brandeland@...ricsson.com>,
Divy Le Ray <divy@...lsio.com>,
Breno Leitao <leitao@...ux.vnet.ibm.com>,
Ron Mercer <ron.mercer@...gic.com>,
Linux Driver <Linux-Driver@...gic.com>,
Anirban Chakraborty <anirban.chakraborty@...gic.com>,
Jon Mason <jdmason@...zu.us>,
Solarflare linux maintainers <linux-net-drivers@...arflare.com>,
Steve Hodgson <shodgson@...arflare.com>,
Ben Hutchings <bhutchings@...arflare.com>,
Daniele Venzano <venza@...wnhat.org>,
David Dillow <dave@...dillows.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH net-next 2/2] drivers/net: Remove casts of void *
> From: Joe Perches [mailto:joe@...ches.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@...ches.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists