Skip to content

Commit

Permalink
ax88796: remove memset of private data
Browse files Browse the repository at this point in the history
It's allocated via alloc_netdev, thus already zeroed.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Marc Kleine-Budde committed Feb 21, 2011
1 parent ea5a43d commit 2f9709d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,6 @@ static int ax_probe(struct platform_device *pdev)
ei_local = netdev_priv(dev);
ax = to_ax_dev(dev);

memset(ax, 0, sizeof(struct ax_device));

spin_lock_init(&ax->mii_lock);

ax->dev = pdev;
Expand Down

0 comments on commit 2f9709d

Please sign in to comment.