summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-11-05 07:54:42 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-11-05 07:54:42 -0500
commit306604fa5dd4ae69145d9e75bd202801f3066e9c (patch)
tree1e51198cfd5419743bb647e97b4f6432b459cfb7 /linux
parentd0b48ff1d8682f060368a30911d74b455d0084ab (diff)
downloadmediapointer-dvb-s2-306604fa5dd4ae69145d9e75bd202801f3066e9c.tar.gz
mediapointer-dvb-s2-306604fa5dd4ae69145d9e75bd202801f3066e9c.tar.bz2
tda8290: optimize for loop in tda829x_probe function
From: Michael Krufky <mkrufky@linuxtv.org> Thanks to Trent Piepho for pointing this out. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/tda8290.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index 8fed39d31..7f59da01b 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -785,9 +785,8 @@ int tda829x_probe(struct tuner *t)
tuner_i2c_xfer_send(&i2c_props, soft_reset, 1);
tuner_i2c_xfer_recv(&i2c_props, buf, PROBE_BUFFER_SIZE);
for (i = 1; i < PROBE_BUFFER_SIZE; i++) {
- if (buf[i] == buf[0])
- continue;
- break;
+ if (buf[i] != buf[0])
+ break;
}
/* all bytes are equal, not a tda829x - probably a tda9887 */