V4L/DVB (6441): tuner: clean up ops checking in tuner_status function
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 22 Oct 2007 04:44:03 +0000 (01:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:01:10 +0000 (19:01 -0200)
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c

index 805a2bd29e7fbb9d00c6fa072acfc9fd28c0f57c..3de03da28da086581fb46e065790659b7c7a2556 100644 (file)
@@ -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");
        }
 }