]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit0a3dabb15ef9039188464647113398ed95400318
tree42a47cc31b843ed8e1755587f867336ac07b37fb
parent7c287f1849cd904c210608a6a7bcec055bcb1152
[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