tehuti: Remove unnecessary memset of netdev private data
authorTobias Klauser <tklauser@distanz.ch>
Thu, 6 May 2010 05:43:04 +0000 (05:43 +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/tehuti.c

index e29f495c6a2beb94140e58b9a5f8deddb8558258..20ab161923253835b7ee760f8fc027bdcc8aa82c 100644 (file)
@@ -2033,7 +2033,6 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        /************** priv ****************/
                priv = nic->priv[port] = netdev_priv(ndev);
 
-               memset(priv, 0, sizeof(struct bdx_priv));
                priv->pBdxRegs = nic->regs + port * 0x8000;
                priv->port = port;
                priv->pdev = pdev;