net: e1000: typo using wrong argument to sizeof
authorMatthew McClintock <msm@freescale.com>
Tue, 16 Nov 2010 00:02:53 +0000 (18:02 -0600)
committerWolfgang Denk <wd@denx.de>
Wed, 17 Nov 2010 21:05:11 +0000 (22:05 +0100)
Typo from 4b29bdb0ed08412d225a8be94f61fc6c37a59dd5

Signed-off-by: Matthew McClintock <msm@freescale.com>
drivers/net/e1000.c

index 18584efdd53204aede763c8f6efa0acd62c58290..60b04c267cbd9fd421b31f06997a87482dbde9f8 100644 (file)
@@ -5189,7 +5189,7 @@ e1000_initialize(bd_t * bis)
                        return 0;
                }
 
-               memset(nic, 0, sizeof(*dev));
+               memset(nic, 0, sizeof(*nic));
                memset(hw, 0, sizeof(*hw));
 
                hw->pdev = devno;