omap3: IGEP v2: Improve igep2_flash_init() function
authorEnric Balletbò i Serra <eballetbo@gmail.com>
Sat, 23 Oct 2010 16:49:00 +0000 (16:49 +0000)
committerTony Lindgren <tony@atomide.com>
Fri, 5 Nov 2010 21:47:16 +0000 (14:47 -0700)
The changes are:
  - Use 'for' loop instead 'while' loop.
  - No need to initialize ret to 0, we're assigning it right after.
  - No need to check for onenandcs < GPMC_CS_NUM here, it will always be true.

Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found