From: Hans Verkuil Date: Sat, 2 May 2009 10:56:46 +0000 (-0300) Subject: V4L/DVB (11668): ivtv: fix compiler warning. X-Git-Tag: v2.6.30-rc6~47^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34a7864db1bc6d9ceb466251957fccf90c7106f8;p=profile%2Fivi%2Fkernel-x86-ivi.git V4L/DVB (11668): ivtv: fix compiler warning. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index b0195e8..db2ac9a 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c @@ -305,14 +305,17 @@ int ivtv_waitq(wait_queue_head_t *waitq) /* Generic utility functions */ int ivtv_msleep_timeout(unsigned int msecs, int intr) { - int ret; int timeout = msecs_to_jiffies(msecs); do { set_current_state(intr ? TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE); timeout = schedule_timeout(timeout); - if (intr && (ret = signal_pending(current))) - return ret; + if (intr) { + int ret = signal_pending(current); + + if (ret) + return ret; + } } while (timeout); return 0; }