mtd: nand_bcm: fix hot spin and code duplication
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 22 Jan 2010 21:22:52 +0000 (22:22 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 16:56:35 +0000 (16:56 +0000)
In the branch where pagesize equalled NAND_DATA_ACCESS_SIZE, NumToRead
wasn't decremented in the `while (numToRead > 11)' loop.
Also the first and last while loops were duplicated in both branches.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Leo Chen <leochen@broadcom.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

No differences found