From: Roel Kluin Date: Fri, 22 Jan 2010 21:22:52 +0000 (+0100) Subject: mtd: nand_bcm: fix hot spin and code duplication X-Git-Tag: v2.6.35-rc1~465^2~106 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1385858ee07cbfd68c503a10e4a526d24223d465;p=pandora-kernel.git 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 Acked-by: Leo Chen Signed-off-by: David Woodhouse --- Reading git-diff-tree failed