Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 1f8766b4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}