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)
commit1385858ee07cbfd68c503a10e4a526d24223d465
treef0d4a3de0a8f21e0cbbbdab61e7e9f43abe2018f
parentc3341d0ceb4de1680572024f50233403c6a8b10d
mtd: nand_bcm: fix hot spin and code duplication

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>
drivers/mtd/nand/nand_bcm_umi.h