[media] DVB: dvb_frontend: check function pointers on reinitialize

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Andreas Oberritter 2011-08-24 14:33:52 -03:00 committed by Mauro Carvalho Chehab
parent 1b19e42952
commit 42f4e774a3

View File

@ -577,12 +577,10 @@ static int dvb_frontend_thread(void *data)
if (fepriv->reinitialise) {
dvb_frontend_init(fe);
if (fepriv->tone != -1) {
if (fe->ops.set_tone && fepriv->tone != -1)
fe->ops.set_tone(fe, fepriv->tone);
}
if (fepriv->voltage != -1) {
if (fe->ops.set_voltage && fepriv->voltage != -1)
fe->ops.set_voltage(fe, fepriv->voltage);
}
fepriv->reinitialise = 0;
}