diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/v4l1-compat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index d450cab20be4..b617bf05e2d7 100644 --- a/drivers/media/video/v4l1-compat.c +++ b/drivers/media/video/v4l1-compat.c | |||
@@ -203,7 +203,6 @@ static int poll_one(struct file *file, struct poll_wqueues *pwq) | |||
203 | table = &pwq->pt; | 203 | table = &pwq->pt; |
204 | for (;;) { | 204 | for (;;) { |
205 | int mask; | 205 | int mask; |
206 | set_current_state(TASK_INTERRUPTIBLE); | ||
207 | mask = file->f_op->poll(file, table); | 206 | mask = file->f_op->poll(file, table); |
208 | if (mask & POLLIN) | 207 | if (mask & POLLIN) |
209 | break; | 208 | break; |
@@ -212,9 +211,8 @@ static int poll_one(struct file *file, struct poll_wqueues *pwq) | |||
212 | retval = -ERESTARTSYS; | 211 | retval = -ERESTARTSYS; |
213 | break; | 212 | break; |
214 | } | 213 | } |
215 | schedule(); | 214 | poll_schedule(pwq, TASK_INTERRUPTIBLE); |
216 | } | 215 | } |
217 | set_current_state(TASK_RUNNING); | ||
218 | poll_freewait(pwq); | 216 | poll_freewait(pwq); |
219 | return retval; | 217 | return retval; |
220 | } | 218 | } |