Roel Kluin 94d78e180c i2c-algo-pcf: Handle timeout correctly
With a postfix decrement these timeouts reach -1 rather than 0, but after the
loop it is tested whether they have become 0.

As pointed out by Jean Delvare, the msg_num should be tested before the timeout.
With the current order, you could exit with a timeout error while all the
messages were successfully transferred.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Eric Brower <ebrower@gmail.com>
2009-03-28 21:34:42 +01:00
..
2009-03-24 22:52:39 -04:00
2009-03-21 19:06:51 -07:00
2009-02-18 15:37:56 -08:00
2009-03-26 17:00:25 -07:00
2009-03-28 21:34:41 +01:00
2009-01-09 03:39:43 -05:00
2009-03-27 20:13:20 -04:00