]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dvb_frontend: fix compile warning
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 27 Aug 2011 14:30:25 +0000 (11:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 6 Sep 2011 17:46:59 +0000 (14:46 -0300)
Andreas Oberritter <obi@linuxtv.org> has looked at this and agreed that it is
safe to remove the 'timeout' variable.

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

index 4b05931a098f7e176f316b44b76bf9a15b881993..2c0acdb4d81144b00b1381742505d18f208addb2 100644 (file)
@@ -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);