[U-Boot] [PATCH 5/9] ARM: remove unused variable

Guennadi Liakhovetski lg at denx.de
Wed Feb 4 23:20:58 CET 2009


On Wed, 4 Feb 2009, Jean-Christophe PLAGNIOL-VILLARD wrote:

> On 17:59 Wed 04 Feb     , Guennadi Liakhovetski wrote:
> > The "size" variable in start_armboot() in lib_arm/board.c is only really 
> > used in
> > #if !defined(CONFIG_SYS_NO_FLASH)
> > case, remove where unused.
> > 
> why not remove it
> in the CONFIG_SYS_NO_FLASH you can not use it at all

Sorry? remove what? the "size" variable? Have a look at the code - it is 
_used_ if CONFIG_SYS_NO_FLASH is _not_ defined, and so it is also defined 
for this case. Or have I misunderstood you?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de


More information about the U-Boot mailing list