ax88796: remove memset of private data
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 19 Feb 2011 21:12:27 +0000 (22:12 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Feb 2011 12:13:40 +0000 (13:13 +0100)
It's allocated via alloc_netdev, thus already zeroed.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/ax88796.c

index c49c3b1081337ca671ee1bba294576cd9d28326b..885f04ec1518b5ea2da91f84a916549f8bf161a4 100644 (file)
@@ -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;