Skip to content

Commit

Permalink
V4L/DVB: vpif_cap: don't ignore return code of videobuf_poll_stream()
Browse files Browse the repository at this point in the history
Signed-off-by: Mats Randgaard <mats.randgaard@tandberg.com>
Signed-off-by: Hans Verkuil <hans.verkuil@tandberg.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mats Randgaard authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 1f8766b commit 11382f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/media/video/davinci/vpif_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,16 +731,14 @@ static int vpif_mmap(struct file *filep, struct vm_area_struct *vma)
*/
static unsigned int vpif_poll(struct file *filep, poll_table * wait)
{
int err = 0;
struct vpif_fh *fh = filep->private_data;
struct channel_obj *channel = fh->channel;
struct common_obj *common = &(channel->common[VPIF_VIDEO_INDEX]);

vpif_dbg(2, debug, "vpif_poll\n");

if (common->started)
err = videobuf_poll_stream(filep, &common->buffer_queue, wait);

return videobuf_poll_stream(filep, &common->buffer_queue, wait);
return 0;
}

Expand Down

0 comments on commit 11382f3

Please sign in to comment.