]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6356): "while (!ca->wakeup)" breaks the CAM initialisation
authorMarco Schluessler <marco@lordzodiac.de>
Tue, 16 Oct 2007 11:25:42 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 22 Oct 2007 14:01:50 +0000 (12:01 -0200)
Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvb_ca_en50221.c

index 084a508a03da8e1202b01fd77ee6a8209fc2f729..89437fdab8befcd393578c57f8c44d9434787612 100644 (file)
@@ -972,7 +972,7 @@ static int dvb_ca_en50221_thread(void *data)
        /* main loop */
        while (!kthread_should_stop()) {
                /* sleep for a bit */
-               while (!ca->wakeup) {
+               if (!ca->wakeup) {
                        set_current_state(TASK_INTERRUPTIBLE);
                        schedule_timeout(ca->delay);
                        if (kthread_should_stop())