diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-05-06 01:40:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-07 01:10:37 -0400 |
commit | 2039623a0b0c6eb3da2b4524d75b0cf0ccadf976 (patch) | |
tree | a568334afafca8c25d395b63a755ce80ba422b9c | |
parent | 468003f571b73588482ba058194e73d0689b94e6 (diff) |
KS8695: 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@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/arm/ks8695net.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/arm/ks8695net.c b/drivers/net/arm/ks8695net.c index 7413a87e40ff..6404704f7eac 100644 --- a/drivers/net/arm/ks8695net.c +++ b/drivers/net/arm/ks8695net.c | |||
@@ -1472,7 +1472,6 @@ ks8695_probe(struct platform_device *pdev) | |||
1472 | 1472 | ||
1473 | /* Configure our private structure a little */ | 1473 | /* Configure our private structure a little */ |
1474 | ksp = netdev_priv(ndev); | 1474 | ksp = netdev_priv(ndev); |
1475 | memset(ksp, 0, sizeof(struct ks8695_priv)); | ||
1476 | 1475 | ||
1477 | ksp->dev = &pdev->dev; | 1476 | ksp->dev = &pdev->dev; |
1478 | ksp->ndev = ndev; | 1477 | ksp->ndev = ndev; |