[media] dvb-frontend: remove a warning
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 18 Feb 2015 14:43:44 +0000 (11:43 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 26 Feb 2015 11:43:29 +0000 (08:43 -0300)
if CONFIG_MEDIA_CONTROLLER_DVB is not selected, it is now
producing this warning:

drivers/media/dvb-core/dvb_frontend.c: In function ‘dvb_frontend_thread’:
drivers/media/dvb-core/dvb_frontend.c:695:6: warning: unused variable ‘ret’ [-Wunused-variable]
  int ret;
      ^

Reported-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-core/dvb_frontend.c

index 79d2fac5075cfa36634b404e728988c6bb16f1ce..882ca417f328a3b7f7c20f09e63992e642923981 100644 (file)
@@ -692,7 +692,9 @@ static int dvb_frontend_thread(void *data)
        struct dvb_frontend_private *fepriv = fe->frontend_priv;
        fe_status_t s;
        enum dvbfe_algo algo;
+#ifdef CONFIG_MEDIA_CONTROLLER_DVB
        int ret;
+#endif
 
        bool re_tune = false;
        bool semheld = false;
This page took 0.026057 seconds and 5 git commands to generate.