提交 bbe1e0ba 编写于 作者: M Michael Krufky 提交者: Mauro Carvalho Chehab

V4L/DVB (6563): tda8290: optimize for loop in tda829x_probe function

Thanks to Trent Piepho for pointing this out.
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 98ae127c
...@@ -754,9 +754,8 @@ int tda829x_probe(struct tuner *t) ...@@ -754,9 +754,8 @@ int tda829x_probe(struct tuner *t)
tuner_i2c_xfer_send(&i2c_props, soft_reset, 1); tuner_i2c_xfer_send(&i2c_props, soft_reset, 1);
tuner_i2c_xfer_recv(&i2c_props, buf, PROBE_BUFFER_SIZE); tuner_i2c_xfer_recv(&i2c_props, buf, PROBE_BUFFER_SIZE);
for (i = 1; i < PROBE_BUFFER_SIZE; i++) { for (i = 1; i < PROBE_BUFFER_SIZE; i++) {
if (buf[i] == buf[0]) if (buf[i] != buf[0])
continue; break;
break;
} }
/* all bytes are equal, not a tda829x - probably a tda9887 */ /* all bytes are equal, not a tda829x - probably a tda9887 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册