Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755258Ab1FNIXw (ORCPT ); Tue, 14 Jun 2011 04:23:52 -0400 Received: from smtp2.infomaniak.ch ([84.16.68.90]:38492 "EHLO smtp2.infomaniak.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754450Ab1FNIXt convert rfc822-to-8bit (ORCPT ); Tue, 14 Jun 2011 04:23:49 -0400 X-Greylist: delayed 332 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Jun 2011 04:23:48 EDT MIME-Version: 1.0 In-Reply-To: <486a21b708a9dce0c1c0059a21a2f9b66dac9e3c.1308024069.git.joe@perches.com> References: <486a21b708a9dce0c1c0059a21a2f9b66dac9e3c.1308024069.git.joe@perches.com> Date: Tue, 14 Jun 2011 10:18:12 +0200 Message-ID: Subject: Re: [PATCH net-next 2/2] drivers/net: Remove casts of void * From: Daniele Venzano To: Joe Perches Cc: netdev@vger.kernel.org, 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 , Amit Kumar Salecha , Ron Mercer , linux-driver@qlogic.com, Anirban Chakraborty , Jon Mason , Solarflare linux maintainers , Steve Hodgson , Ben Hutchings , David Dillow , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 37 2011/6/14 Joe Perches : > Unnecessary casts of void * clutter the code. > diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c > index 484f795..658a192 100644 > --- a/drivers/net/sis900.c > +++ b/drivers/net/sis900.c > @@ -482,7 +482,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev, >                ret = -ENOMEM; >                goto err_out_cleardev; >        } > -       sis_priv->tx_ring = (BufferDesc *)ring_space; > +       sis_priv->tx_ring = ring_space; >        sis_priv->tx_ring_dma = ring_dma; > >        ring_space = pci_alloc_consistent(pci_dev, RX_TOTAL_SIZE, &ring_dma); > @@ -490,7 +490,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev, >                ret = -ENOMEM; >                goto err_unmap_tx; >        } > -       sis_priv->rx_ring = (BufferDesc *)ring_space; > +       sis_priv->rx_ring = ring_space; >        sis_priv->rx_ring_dma = ring_dma; > >        /* The SiS900-specific entries in the device structure. */ sis900 looks good, too. -- Daniele Venzano venza@brownhat.org http://www.brownhat.org -- 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/