projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c3d29
)
V4L/DVB (11668): ivtv: fix compiler warning.
author
Hans Verkuil
<
[email protected]
>
Sat, 2 May 2009 10:56:46 +0000
(07:56 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Sat, 9 May 2009 21:52:36 +0000
(18:52 -0300)
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/ivtv/ivtv-driver.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/ivtv/ivtv-driver.c
b/drivers/media/video/ivtv/ivtv-driver.c
index b0195e8ee4d1d45d64ba17792e94a53fd06642f8..db2ac9a99acd68b96f5af3e439acd4206ed3e01a 100644
(file)
--- 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;
}