From 07fcb044b6ea53b67d00e198f9073e0538df7b75 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 9 Sep 2009 01:07:44 +0000 Subject: dm9000: 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 Signed-off-by: David S. Miller --- drivers/net/dm9000.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers') diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index a2bc4158259a..60de17689e64 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -1281,7 +1281,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; -- cgit v1.2.1