Patchwork [U-Boot] net: e1000: typo using wrong argument to sizeof

login
register
mail settings
Submitter Matthew McClintock
Date Nov. 16, 2010, 12:02 a.m.
Message ID <1289865773-10922-1-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/71315/
State Accepted
Commit f7ac99fdd9eaf64df9731c2e8fdf97e9d3e2c82a
Delegated to: Wolfgang Denk
Headers show

Comments

Matthew McClintock - Nov. 16, 2010, 12:02 a.m.
Typo from 4b29bdb0ed08412d225a8be94f61fc6c37a59dd5

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 drivers/net/e1000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Wolfgang Denk - Nov. 17, 2010, 9:05 p.m.
Dear Matthew McClintock,

In message <1289865773-10922-1-git-send-email-msm@freescale.com> you wrote:
> Typo from 4b29bdb0ed08412d225a8be94f61fc6c37a59dd5
> 
> Signed-off-by: Matthew McClintock <msm@freescale.com>
> ---
>  drivers/net/e1000.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 18584ef..60b04c2 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -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;