Message ID | 1252494464-4633-2-git-send-email-tklauser@distanz.ch |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Tobias Klauser <tklauser@distanz.ch> Date: Wed, 9 Sep 2009 13:07:44 +0200 > 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> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 00a9db8..11995ad 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -1213,7 +1213,6 @@ dm9000_probe(struct platform_device *pdev) /* setup board info structure */ db = netdev_priv(ndev); - memset(db, 0, sizeof(*db)); db->dev = &pdev->dev; db->ndev = ndev;
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> --- drivers/net/dm9000.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)