diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-06-04 10:24:59 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-06-05 16:33:14 -0400 |
commit | 43950a605dc76677f0c74dcd818a57d4df040e12 (patch) | |
tree | b53d29351611076e3f4d2b287d53d53438f64ff2 /drivers/mtd | |
parent | a755a3858f96ea7e8762ecaac451adfad45321bd (diff) |
mtd: nand: max_retries off by one in mxc_nand
with `while (max_retries-- > 0)' max_retries reaches -1 after the loop.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index d03bd4eff722..da41ea82941a 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -199,7 +199,7 @@ static void wait_op_done(struct mxc_nand_host *host, int max_retries, | |||
199 | } | 199 | } |
200 | udelay(1); | 200 | udelay(1); |
201 | } | 201 | } |
202 | if (max_retries <= 0) | 202 | if (max_retries < 0) |
203 | DEBUG(MTD_DEBUG_LEVEL0, "%s(%d): INT not set\n", | 203 | DEBUG(MTD_DEBUG_LEVEL0, "%s(%d): INT not set\n", |
204 | __func__, param); | 204 | __func__, param); |
205 | } | 205 | } |