Commit 2039623a authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 468003f5
...@@ -1472,7 +1472,6 @@ ks8695_probe(struct platform_device *pdev) ...@@ -1472,7 +1472,6 @@ ks8695_probe(struct platform_device *pdev)
/* Configure our private structure a little */ /* Configure our private structure a little */
ksp = netdev_priv(ndev); ksp = netdev_priv(ndev);
memset(ksp, 0, sizeof(struct ks8695_priv));
ksp->dev = &pdev->dev; ksp->dev = &pdev->dev;
ksp->ndev = ndev; ksp->ndev = ndev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment