From: Marc Kleine-Budde Date: Sat, 19 Feb 2011 21:12:27 +0000 (+0100) Subject: ax88796: remove memset of private data X-Git-Tag: v2.6.39-rc1~468^2~310^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f9709dbdf2777c88b7f1f9a8283119f17f7373e;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git ax88796: remove memset of private data It's allocated via alloc_netdev, thus already zeroed. Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c index c49c3b1..885f04e 100644 --- a/drivers/net/ax88796.c +++ b/drivers/net/ax88796.c @@ -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;