[U-Boot] [PATCH 29/56] ICU862: Fix incorrect flash handling

Wolfgang Denk wd at denx.de
Mon Nov 7 22:13:38 CET 2011


Dear Wolfgang Denk,

In message <1320458160-23136-30-git-send-email-wd at denx.de> you wrote:
> There is only one bank of NOR flash memory on ICU862 boards.
> Remove code that attempts to deal with a second bank.
> 
> This also fixes build warnings:
> flash.c: In function 'flash_init':
> flash.c:120:12: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:121:12: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:124:12: warning: array subscript is above array bounds
> [-Warray-bounds]
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  board/icu862/flash.c |   32 +++-----------------------------
>  1 files changed, 3 insertions(+), 29 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
Program maintenance is an entropy-increasing process,  and  even  its
most skilfull execution only delays the subsidence of the system into
unfixable obsolescence.       - Fred Brooks, "The Mythical Man Month"


More information about the U-Boot mailing list