summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/stv0900_sw.c
diff options
context:
space:
mode:
authorCong Ding <dinggnu@gmail.com>2013-02-03 22:34:48 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-08 18:05:48 -0200
commit4880f56438ef56457edd5548b257382761591998 (patch)
tree7139ff8e5af503e4962cdaf7a969632132f49409 /drivers/media/dvb-frontends/stv0900_sw.c
parenta92591a7112042f92b609be42bc332d989776e9b (diff)
downloadop-kernel-dev-4880f56438ef56457edd5548b257382761591998.zip
op-kernel-dev-4880f56438ef56457edd5548b257382761591998.tar.gz
[media] stv0900: remove unnecessary null pointer check
The address of a variable is impossible to be null, so we remove the check. Signed-off-by: Cong Ding <dinggnu@gmail.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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 4af2078..0a40edf 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)
struct dvb_tuner_ops *tuner_ops = NULL;
u32 freq = 0;
- if (&fe->ops)
- frontend_ops = &fe->ops;
-
- if (&frontend_ops->tuner_ops)
- tuner_ops = &frontend_ops->tuner_ops;
+ frontend_ops = &fe->ops;
+ tuner_ops = &frontend_ops->tuner_ops;
if (tuner_ops->get_frequency) {
if ((tuner_ops->get_frequency(fe, &freq)) < 0)
OpenPOWER on IntegriCloud