From: Mauro Carvalho Chehab Date: Wed, 18 Feb 2015 14:43:44 +0000 (-0300) Subject: [media] dvb-frontend: remove a warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1bd57d30bf1b72134d1049b9b169afa96c4d030;p=linux-beck.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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;