]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-stu300: off by one issue
authorDan Carpenter <error27@gmail.com>
Wed, 7 Apr 2010 09:22:58 +0000 (12:22 +0300)
committerBen Dooks <ben-linux@fluff.org>
Tue, 20 Apr 2010 00:17:13 +0000 (01:17 +0100)
commitafa0b1a11437b32757dddbb3b95955f76cc2971e
treea0692e8bb1951a87849f03a9b04a853a8732ff17
parentddc4eb36fb7cc4aca80894e2ad6016ede0ed875a
i2c-stu300: off by one issue

If we don't find the correct rate, we want to end the loop with "i"
pointing to the last element in the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-stu300.c