linux/drivers/gpu/drm/i2c
Colin Ian King d98627d136 drm/i2c: tda9950: fix timeout counter check
Currently the check to see if the timeout has reached zero is incorrect
and the check is instead checking if the timeout is non-zero and not
zero, hence it will break out of the loop on the first iteration and
the msleep is never executed.  Fix this by breaking from the loop when
timeout is zero.

Detected by CoverityScan, CID#1469404 ("Logically Dead Code")

Fixes: f0316f9389 ("drm/i2c: tda9950: add CEC driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
2018-09-20 17:13:23 +01:00
..
ch7006_drv.c drm: i2c: ch7006: constify i2c_device_id 2017-08-22 08:29:10 +02:00
ch7006_mode.c drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[] 2015-09-08 13:45:53 +02:00
ch7006_priv.h drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[] 2015-09-08 13:45:53 +02:00
Kconfig drm/i2c: tda9950: add CEC driver 2018-04-24 10:44:25 +01:00
Makefile drm/i2c: tda9950: add CEC driver 2018-04-24 10:44:25 +01:00
sil164_drv.c drm: i2c: sil164: constify i2c_device_id 2017-08-22 08:29:10 +02:00
tda998x_drv.c drm/i2c: tda998x: always disable and clear interrupts at probe 2018-04-03 12:21:54 +01:00
tda9950.c drm/i2c: tda9950: fix timeout counter check 2018-09-20 17:13:23 +01:00