aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/stv0900_sw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb-frontends/stv0900_sw.c')
-rw-r--r--drivers/media/dvb-frontends/stv0900_sw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/dvb-frontends/stv0900_sw.c b/drivers/media/dvb-frontends/stv0900_sw.c
index 4af20780fb9c..0a40edfad739 100644
--- a/drivers/media/dvb-frontends/stv0900_sw.c
+++ b/drivers/media/dvb-frontends/stv0900_sw.c
@@ -1167,11 +1167,8 @@ static u32 stv0900_get_tuner_freq(struct dvb_frontend *fe)
1167 struct dvb_tuner_ops *tuner_ops = NULL; 1167 struct dvb_tuner_ops *tuner_ops = NULL;
1168 u32 freq = 0; 1168 u32 freq = 0;
1169 1169
1170 if (&fe->ops) 1170 frontend_ops = &fe->ops;
1171 frontend_ops = &fe->ops; 1171 tuner_ops = &frontend_ops->tuner_ops;
1172
1173 if (&frontend_ops->tuner_ops)
1174 tuner_ops = &frontend_ops->tuner_ops;
1175 1172
1176 if (tuner_ops->get_frequency) { 1173 if (tuner_ops->get_frequency) {
1177 if ((tuner_ops->get_frequency(fe, &freq)) < 0) 1174 if ((tuner_ops->get_frequency(fe, &freq)) < 0)