Commit 42f4e774 authored by Andreas Oberritter's avatar Andreas Oberritter Committed by Mauro Carvalho Chehab

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

Signed-off-by: default avatarAndreas Oberritter <obi@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 1b19e429
...@@ -577,12 +577,10 @@ static int dvb_frontend_thread(void *data) ...@@ -577,12 +577,10 @@ static int dvb_frontend_thread(void *data)
if (fepriv->reinitialise) { if (fepriv->reinitialise) {
dvb_frontend_init(fe); dvb_frontend_init(fe);
if (fepriv->tone != -1) { if (fe->ops.set_tone && fepriv->tone != -1)
fe->ops.set_tone(fe, fepriv->tone); fe->ops.set_tone(fe, fepriv->tone);
} if (fe->ops.set_voltage && fepriv->voltage != -1)
if (fepriv->voltage != -1) {
fe->ops.set_voltage(fe, fepriv->voltage); fe->ops.set_voltage(fe, fepriv->voltage);
}
fepriv->reinitialise = 0; fepriv->reinitialise = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment