]> git.baikalelectronics.ru Git - kernel.git/commit
media: cxd2841er: ensure that status will always be available
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 1 Nov 2017 21:05:59 +0000 (17:05 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 11 Dec 2017 18:04:57 +0000 (13:04 -0500)
commit4d2c43020f39cd6c16b83a3c757d9662fbd74ae0
tree150c5feed8cf5b14cead924e776cf603f48258bb
parentd60bd0481f44c43221e25f0a0df8825c7bddc3a6
media: cxd2841er: ensure that status will always be available

The loop with read status use a dynamic timeout value, calculated
from symbol rate. It should run the loop at least one time for
the status to be handled after the loop.

While this should, in practice, happen every time, it doesn't
hurt to change the logic to make it explicit.

This solves a smatch warning:
drivers/media/dvb-frontends/cxd2841er.c:3350 cxd2841er_set_frontend_s() error: uninitialized symbol 'status'.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/cxd2841er.c