diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-22 00:44:03 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-22 00:44:03 -0400 |
commit | dc6f31feaba49df7cf93fe4b1aac2665f2e3e692 (patch) | |
tree | 93ecc8988f173d322b5a884b3330a6df14cea73a /linux/drivers/media/video/tuner-core.c | |
parent | 45eba30725ae74b83dcb73a3cb79db3bbe2f53b1 (diff) | |
download | mediapointer-dvb-s2-dc6f31feaba49df7cf93fe4b1aac2665f2e3e692.tar.gz mediapointer-dvb-s2-dc6f31feaba49df7cf93fe4b1aac2665f2e3e692.tar.bz2 |
tuner: clean up ops checking in tuner_status function
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/video/tuner-core.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 7c52d616a..ccddf55eb 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -603,12 +603,13 @@ static void tuner_status(struct dvb_frontend *fe) if (tuner_status & TUNER_STATUS_STEREO) tuner_info("Stereo: yes\n"); } - if ((ops) && (ops->has_signal)) { - tuner_info("Signal strength: %d\n", ops->has_signal(fe)); - } - if ((ops) && (ops->is_stereo)) { - tuner_info("Stereo: %s\n", ops->is_stereo(fe) ? - "yes" : "no"); + if (ops) { + if (ops->has_signal) + tuner_info("Signal strength: %d\n", + ops->has_signal(fe)); + if (ops->is_stereo) + tuner_info("Stereo: %s\n", + ops->is_stereo(fe) ? "yes" : "no"); } } |