omap3: IGEP v2: Improve igep2_flash_init() function
authorEnric Balletbo i Serra <eballetbo@gmail.com>
Sat, 23 Oct 2010 16:49:00 +0000 (16:49 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 30 Nov 2010 21:48:25 +0000 (13:48 -0800)
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