sunhme: Remove unnecessary memset of netdev private data
authorTobias Klauser <tklauser@distanz.ch>
Thu, 6 May 2010 05:41:44 +0000 (05:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 May 2010 05:10:40 +0000 (22:10 -0700)
The memory for the private data is allocated using kzalloc in
alloc_etherdev (or alloc_netdev_mq respectively) so there is no need to
set it to 0 again.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sunhme.c

index 20deb14e98ff5c993545b349278ffa1d33f8b10f..982ff12764a3f848e92e078c4cd769e1d53fab88 100644 (file)
@@ -3004,7 +3004,6 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
        dev->base_addr = (long) pdev;
 
        hp = netdev_priv(dev);
-       memset(hp, 0, sizeof(*hp));
 
        hp->happy_dev = pdev;
        hp->dma_dev = &pdev->dev;