From: Hans Verkuil Date: Sat, 27 Aug 2011 14:30:25 +0000 (-0300) Subject: [media] dvb_frontend: fix compile warning X-Git-Tag: MMI-PSA29.97-13-9~18177^2~224 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94238e9b1946a300b7aeb8bc1ab7f55f6f27e225;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] dvb_frontend: fix compile warning Andreas Oberritter has looked at this and agreed that it is safe to remove the 'timeout' variable. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 4b05931a098f..2c0acdb4d811 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -537,7 +537,6 @@ static int dvb_frontend_thread(void *data) { struct dvb_frontend *fe = data; struct dvb_frontend_private *fepriv = fe->frontend_priv; - unsigned long timeout; fe_status_t s; enum dvbfe_algo algo; @@ -558,7 +557,7 @@ static int dvb_frontend_thread(void *data) while (1) { up(&fepriv->sem); /* is locked when we enter the thread... */ restart: - timeout = wait_event_interruptible_timeout(fepriv->wait_queue, + wait_event_interruptible_timeout(fepriv->wait_queue, dvb_frontend_should_wakeup(fe) || kthread_should_stop() || freezing(current), fepriv->delay);