From: Mats Randgaard Date: Tue, 7 Sep 2010 14:28:23 +0000 (-0300) Subject: V4L/DVB: vpif_cap: don't ignore return code of videobuf_poll_stream() X-Git-Tag: upstream/snapshot3+hdmi~12606^2~450 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11382f3d8a2d54d1db0aa6a768cd94214536c1b2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git V4L/DVB: vpif_cap: don't ignore return code of videobuf_poll_stream() Signed-off-by: Mats Randgaard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c index 2ed233f..730bd4c 100644 --- a/drivers/media/video/davinci/vpif_capture.c +++ b/drivers/media/video/davinci/vpif_capture.c @@ -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; }