[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1273160504-13308-1-git-send-email-tklauser@distanz.ch>
Date: Thu, 6 May 2010 17:41:44 +0200
From: Tobias Klauser <tklauser@...tanz.ch>
To: davem@...emloft.net, netdev@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org,
Tobias Klauser <tklauser@...tanz.ch>
Subject: [PATCH 7/8] sunhme: Remove unnecessary memset of netdev private data
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@...tanz.ch>
---
drivers/net/sunhme.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index 20deb14..982ff12 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -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;
--
1.6.3.3
--
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