summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-18 11:43:44 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-02-26 08:43:29 -0300
commitc1bd57d30bf1b72134d1049b9b169afa96c4d030 (patch)
tree967cdf3ed38e6595c4840bf3d6a732524adcb3ca /drivers/media/dvb-core
parent7e182f78988404717e27aed5a9d4150631b323f4 (diff)
downloadlinux-stable-c1bd57d30bf1b72134d1049b9b169afa96c4d030.tar.gz
linux-stable-c1bd57d30bf1b72134d1049b9b169afa96c4d030.tar.bz2
linux-stable-c1bd57d30bf1b72134d1049b9b169afa96c4d030.zip
[media] dvb-frontend: remove a warning
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>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r--drivers/media/dvb-core/dvb_frontend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index 79d2fac5075c..882ca417f328 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -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;