Skip to content

Commit

Permalink
[media] DVB: dvb_frontend: check function pointers on reinitialize
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Andreas Oberritter authored and Mauro Carvalho Chehab committed Sep 4, 2011
1 parent 1b19e42 commit 42f4e77
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 42f4e77

Please sign in to comment.