Skip to content

Commit

Permalink
V4L/DVB (6441): tuner: clean up ops checking in tuner_status function
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 4e9154b commit 1b29ced
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,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");
}
}

Expand Down

0 comments on commit 1b29ced

Please sign in to comment.