[U-Boot] [net/eth.c:64]: (error) Uninitialized variable: skip_state

Wolfgang Denk wd at denx.de
Thu Nov 6 19:12:55 CET 2014


Dear Tom Rini,

In message <20141106164628.GR24724 at bill-the-cat> you wrote:
> 
> > [net/eth.c:64]: (error) Uninitialized variable: skip_state
> 
> Dense code, like cmd_ini.c my cppcheck is OK and looking at the code
> manually I think it's fine too:
>         return ((skip_state = getenv(enetvar)) != NULL);

Looks OK to me, too, but recent versions of cppcheck spew this error.

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
"He was so narrow minded he could see through  a  keyhole  with  both
eyes ..."


More information about the U-Boot mailing list