mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 11:28:32 +00:00
ax88796: remove memset of private data
It's allocated via alloc_netdev, thus already zeroed. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
ea5a43db0f
commit
2f9709dbdf
1 changed files with 0 additions and 2 deletions
|
@ -858,8 +858,6 @@ static int ax_probe(struct platform_device *pdev)
|
||||||
ei_local = netdev_priv(dev);
|
ei_local = netdev_priv(dev);
|
||||||
ax = to_ax_dev(dev);
|
ax = to_ax_dev(dev);
|
||||||
|
|
||||||
memset(ax, 0, sizeof(struct ax_device));
|
|
||||||
|
|
||||||
spin_lock_init(&ax->mii_lock);
|
spin_lock_init(&ax->mii_lock);
|
||||||
|
|
||||||
ax->dev = pdev;
|
ax->dev = pdev;
|
||||||
|
|
Loading…
Reference in a new issue