Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756250Ab1FNLcE (ORCPT ); Tue, 14 Jun 2011 07:32:04 -0400 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:34997 "EHLO TX2EHSOBE009.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756205Ab1FNLcB convert rfc822-to-8bit (ORCPT ); Tue, 14 Jun 2011 07:32:01 -0400 X-SpamScore: -6 X-BigFish: VPS-6(zz1432Nzz1202hzz8275bhz2fh2a8h668h839h63h) X-Spam-TCS-SCL: 2:0 X-Forefront-Antispam-Report: CIP:198.70.193.61;KIP:(null);UIP:(null);IPVD:NLI;H:avexcashub1.qlogic.com;RD:avexcashub1.qlogic.com;EFVD:NLI From: Amit Salecha To: Joe Perches , netdev CC: Arnaldo Carvalho de Melo , Jay Cliburn , Chris Snook , Jie Yang , Sathya Perla , Subbu Seetharaman , Ajit Khaparde , Rasesh Mody , Debashis Dutt , Sjur Braendeland , Divy Le Ray , Breno Leitao , Ron Mercer , Linux Driver , Anirban Chakraborty , Jon Mason , Solarflare linux maintainers , Steve Hodgson , Ben Hutchings , Daniele Venzano , David Dillow , linux-kernel Date: Tue, 14 Jun 2011 06:31:47 -0500 Subject: RE: [PATCH net-next 2/2] drivers/net: Remove casts of void * Thread-Topic: [PATCH net-next 2/2] drivers/net: Remove casts of void * Thread-Index: AcwqR/JMrrv69BLCSHGg9jpccQ0gKwAPm5+A Message-ID: <99737F4847ED0A48AECC9F4A1974A4B80FDEEEA283@MNEXMB2.qlogic.org> References: <486a21b708a9dce0c1c0059a21a2f9b66dac9e3c.1308024069.git.joe@perches.com> In-Reply-To: <486a21b708a9dce0c1c0059a21a2f9b66dac9e3c.1308024069.git.joe@perches.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 959 Lines: 36 > 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 > --- > 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/