]> git.baikalelectronics.ru Git - kernel.git/commit
[media] xc5000: properly report i2c write failures
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Tue, 7 Aug 2012 01:46:57 +0000 (22:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 9 Aug 2012 23:33:13 +0000 (20:33 -0300)
commit6c75101ca575ae927f324c77a6ebe3e7eea49752
tree42a47cc31b843ed8e1755587f867336ac07b37fb
parentfe4b4c41b690c427d53b18d764937d2090608265
[media] xc5000: properly report i2c write failures

The logic as written would *never* actually return an error condition,
since the loop would run until the counter hit zero but the check was
for a value less than zero.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c