i2c-pxa.c: timeouts off by 1
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 23 Apr 2009 14:27:39 +0000 (16:27 +0200)
committerBen Dooks <ben-linux@fluff.org>
Sun, 3 May 2009 21:54:23 +0000 (22:54 +0100)
commitd10db3a07e38bfb1bff92c790072d85b0bcc07eb
tree8cfbe18a5d164d02b9fcce64fda01e777a1d655b
parent091438dd5668396328a3419abcbc6591159eb8d1
i2c-pxa.c: timeouts off by 1

With `while (timeout--)' timeout reaches -1 after the loop, so the tests
below are off by one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-pxa.c