Commit 11382f3d authored by Mats Randgaard's avatar Mats Randgaard Committed by Mauro Carvalho Chehab

V4L/DVB: vpif_cap: don't ignore return code of videobuf_poll_stream()

Signed-off-by: default avatarMats Randgaard <mats.randgaard@tandberg.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@tandberg.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 1f8766b4
......@@ -731,7 +731,6 @@ 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]);
......@@ -739,8 +738,7 @@ static unsigned int vpif_poll(struct file *filep, poll_table * wait)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment