[U-Boot] [PATCH] e1000: fix unused variable waring for e1000 driver

Wolfgang Denk wd at denx.de
Thu Nov 17 10:01:34 CET 2011


Dear Roy Zang,

In message <1320654156-3240-1-git-send-email-tie-fei.zang at freescale.com> you wrote:
> Fix the following build warning in drivers/net/e1000.c
> 
> e1000.c: In function 'e1000_reset_hw':
> e1000.c:1373:11: warning: variable 'icr' set but not used [-Wunused-but-set-variable]
> e1000.c: In function 'e1000_phy_init_script':
> e1000.c:4395:11: warning: variable 'ret_val' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Roy Zang <tie-fei.zang at freescale.com>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Kyle Moffett <Kyle.D.Moffett at boeing.com>
> ---
>  drivers/net/e1000.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
They say a little knowledge is a dangerous thing,  but it is not  one
half so bad as a lot of ignorance.   - Terry Pratchett, _Equal Rites_


More information about the U-Boot mailing list